Disabling Query with refetchInterval When Tab Inactive
Hello! I think this might have been done before, but didn't really see it documented anywhere. Can anyone tell me how to prevent a query from refetching, if the tab is inactive? The best scenario for me would be:
- Query active, if tab active
- Query inactive, if tab inactive
- Query inactive, if browser not focused window
- Query refetches, as soon as tab becomes active again
Is there any way to do this?
0 Replies