Notify the user when closing the browser while mutations are still running #9453
Answered
by
TkDodo
SimonSimCity
asked this question in
Ideas
-
I would like to offer a warning to the user if he closes the tab and mutations have not yet returned with a response. Currently, I couldn't find a way of getting a number of pending mutations from this library, so I thought to start a discussion around that. |
Beta Was this translation helpful? Give feedback.
Answered by
TkDodo
Jul 18, 2025
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
SimonSimCity
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
useIsMutating()
as a hook, orqueryClient.isMutating()
as an imperative function call in event handlers.