-
I'd like to prevent the user from closing the app if there are currently unresolved mutations happening in the background. To do this, I'll need to be able to check for any unresolved mutations (not queries) regardless of where the user is in the app. Is there a simple way to do this? |
Beta Was this translation helpful? Give feedback.
Answered by
TkDodo
Dec 16, 2020
Replies: 1 comment 8 replies
-
Maybe look at the query client, it might contain the information that you need and you can get it via |
Beta Was this translation helpful? Give feedback.
8 replies
Answer selected by
narthur
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Maybe look at the query client, it might contain the information that you need and you can get it via
useQueryClient
when the window is closed.