Replies: 1 comment 2 replies
-
|
Beta Was this translation helpful? Give feedback.
2 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.
-
I have a use-case where some button clicks on a page can redirect the user to a new page. Before redirection, I want to make sure that all the mutations triggered by components on the page complete before redirecting to the new page.
I think I can achieve it by using
useIsMutating
andReact.useEffect
at the moment but I want to be able to write an action effect handler instead ofReact.useEffect
. Something like this:Beta Was this translation helpful? Give feedback.
All reactions