How to opt back in to focus
in refetchOnWindowFocus
?
#8023
Answered
by
TkDodo
italodeandra
asked this question in
Q&A
-
Since this was fixed #4805 I'm having issue to keep some queries always update if the user goes to a second screen and gets back to the app window. I understand the reason behind it but I wish it was easier to opt back to use Is there an easy way to use the same implementation as it was before? Instead of relying on workarounds? |
Beta Was this translation helpful? Give feedback.
Answered by
TkDodo
Sep 4, 2024
Replies: 1 comment
-
yes, you can register your own event listener: https://tanstack.com/query/latest/docs/reference/focusManager#focusmanagerseteventlistener |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
italodeandra
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
yes, you can register your own event listener: https://tanstack.com/query/latest/docs/reference/focusManager#focusmanagerseteventlistener