"mutate" side effects #255
Closed
julius-hoffman
started this conversation in
Ideas
Replies: 2 comments 1 reply
-
|
This was intentionally not added because you can just do |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
IMHO, it's just more declarative and easier to read, plus there's no immediate access to data, variables and context if we use then/catch/finally. Ofc we could use it from the returns of useMutation but again I think it comes down to how convenient it is. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It would be very useful to be able to include onSuccess, onError, onSettled callbacks to "mutate" function from useMutation as additional callbacks. We could use API similar to tanstack query.
Beta Was this translation helpful? Give feedback.
All reactions