How to get notified when certain mutations succeed #6241
-
I try to keep my question as short as possible. Considering the circumstances in a web app:
I would like to configure the refetches in one place (near that notification component) and avoid going to all 10 Thanks in advance for your input! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
you could use the new otherwise, the global |
Beta Was this translation helpful? Give feedback.
you could use the new
useMutationState
hook in v5 to listen to all mutations, then find out when they have all finished and then fire an effect that invalidates.otherwise, the global
onSuccess
callback of theMutationCache
can also do it.