-
Hi, I’m trying to execute a onSuccess function on all the mutations of my app. Using the queryClient default options ( One way to do it would be to use Thanks for your help, Antoine. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
To answer myself. This can be done via MutationCache (https://tanstack.com/query/v4/docs/reference/MutationCache#global-callbacks). I didn't know of this class ! |
Beta Was this translation helpful? Give feedback.
To answer myself. This can be done via MutationCache (https://tanstack.com/query/v4/docs/reference/MutationCache#global-callbacks). I didn't know of this class !