Replies: 2 comments
-
mutations don’t share state with each other like queries do. If all you need is isLoading to be reflected, what you can do is provide a mutationKey and then call useIsMutating to filter for running mutations with that key |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you for a quick reply! I incapsulate loading logic using |
Beta Was this translation helpful? Give feedback.
0 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.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a custom hook like
And I use it in multiple components like
Hitting Submit 2 doesn't trigger re-render in
CompA
and thereforeisLoading
not working. Am I doing something wrong? Is this even supported?Beta Was this translation helpful? Give feedback.
All reactions