You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah this is a really frustrating issue. I either have to choose between just injecting the query client at the top level, or manually typing all parameters in the callback functions
Describe the bug
When the
queryClient
is passed in theinjectMutation
method, the return type ofmutationFn
is lost in theonSuccess
method.Your minimal, reproducible example
https://stackblitz.com/edit/stackblitz-starters-3zsk2e?file=test.ts
Steps to reproduce
Expected behavior
Even if the
queryClient
is passed, the return type of themutationFn
should remain in theonSuccess
method.How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
Tanstack Query adapter
angular-query
TanStack Query version
v5.55.4
TypeScript version
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: