-
Hi, I am fairly new to this library. I have a query with the refetchOnWindowFocus set to always. I can see this reported in the devtools as well. However, when I click out of the chrome window and back in, I do not see a request fired in my Network tab. The query is marked as stale and the refetchInterval does trigger a refetch after 6000ms. So I am not really sure why this is happening. Any ideas on how to start debugging this? I tried putting a function instead of "always" but that never seems to get triggered. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
if you are using v5, window focus is only listening to the this is listed in the migration guide and it fixed a couple of bugs as outlined here. You can still set a custom event listener and listen to the |
Beta Was this translation helpful? Give feedback.
if you are using v5, window focus is only listening to the
visibilitychange
event, so you have to really switch tabs to see it getting triggered.this is listed in the migration guide and it fixed a couple of bugs as outlined here.
You can still set a custom event listener and listen to the
focus
event if you want.