onSuccess handlers order in useMutation #424
-
Here's the situation. We have a custom mutation hook, that makes an API request and updates the cache accordingly.
Let's say we use this hook later. We click on the button, execute the hook, and want to call a callback
So here's the problem I encountered. According to the useMutation
the mutate-level My suggestion is to switch the order and execute hook level handers first. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
@tannerlinsley Since this question never been answered and you're about to release v2 soon, let me bother you a little bit and ask to take a look in case you missed it. Sorry about that. |
Beta Was this translation helpful? Give feedback.
-
This will be fixed in 2.0 |
Beta Was this translation helpful? Give feedback.
This will be fixed in 2.0