Replies: 2 comments
-
you can use both, there isn't a big difference. The callbacks are nice to read, and they can be overwritten if you use an abstraction where the mutationFn is provided for you, like with |
Beta Was this translation helpful? Give feedback.
0 replies
-
Worth noting one other distinction is that, with the native promise version, you need to be sure that any
|
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Why do we need callbacks on
useMutation
? Is there a distinction betweenand
Related to #2651, but there the difference comes down to the way promise rejections are handled, which (I don't think?) is relevant here.
Beta Was this translation helpful? Give feedback.
All reactions