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
Returning a Promise on `onSuccess` makes sure the data is updated before the mutation is entirely complete (i.e., isPending is true until onSuccess is fulfilled)
46
+
47
+
[//]: #'Example2'
48
+
39
49
You can wire up your invalidations to happen using any of the callbacks available in the [`useMutation` hook](../mutations.md)
0 commit comments