Access useMutation isLoading state from another component #2707
-
I want to be able to access the The scenario I have is that I want to click a button in a dialog to trigger a mutation where it will do a post request and close the dialog. And I want to show that mutation loading state in other places. I'm sure I have just missed some core concept or clientQuery usage but I can't seem to find anything similar. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
After much research, I have found similar threads: |
Beta Was this translation helpful? Give feedback.
-
Yes, there is an open issue. For your use case, you can use |
Beta Was this translation helpful? Give feedback.
Yes, there is an open issue. For your use case, you can use
useIsMutating