setFocusHandler to customize onWindowFocus refetch behaviour #1280
Unanswered
tonystaark
asked this question in
Q&A
Replies: 1 comment 4 replies
-
You can try v3 |
Beta Was this translation helpful? Give feedback.
4 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 am currently using useQuery and need to refetchOnWindow focus to true.
However, if I refocus and then I want to click a certain button let say to log out, it will cancel behaviour and do refetch. I have to click the second time on the same button to log out.
How do I configure it so it does not refetch if I click on the button?
I have thought of detecting the element tag to be "BUTTON" , however I am not familiarize in how to use setFocusHandler to configure:
How do I integrate the above with the setFocusHandler?
Beta Was this translation helpful? Give feedback.
All reactions