Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(query): regression that breaks TData type check when using custom mutation #1871

Conversation

soartec-lab
Copy link
Member

Status

READY

Description

fix #1820
This is a revert of #1735.
#1805 was also partially reverted, but I did a complete revert with this PR.
In #1735, we tried to improve type safety, but it seems like we made a bug. I'm not expecting this problem, so I'll revert it.

Related PRs

Todos

  • Tests
  • Documentation
  • Changelog Entry (unreleased)

Steps to Test or Reproduce

You can check by tests and sample apps

@soartec-lab soartec-lab force-pushed the fix/react-query/regression-tdata-generic-type branch from a37ce0b to 2f1eabf Compare February 2, 2025 02:45
@soartec-lab soartec-lab added bug Something isn't working tanstack-query TanStack Query related issue labels Feb 2, 2025
@soartec-lab soartec-lab added this to the 7.5.0 milestone Feb 2, 2025
@soartec-lab soartec-lab merged commit e218b4c into orval-labs:master Feb 3, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tanstack-query TanStack Query related issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Regression in 7.4.1: TData generic breaks type check for custom mutation options function
2 participants