Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pause interval refreshing when page is backgrounded #60

Closed
camflan opened this issue Dec 2, 2019 · 1 comment
Closed

Pause interval refreshing when page is backgrounded #60

camflan opened this issue Dec 2, 2019 · 1 comment

Comments

@camflan
Copy link
Contributor

camflan commented Dec 2, 2019

Is there a setting that will let us suspend interval updates once the page is backgrounded, and then resume when it's regained focus?

@tannerlinsley
Copy link
Collaborator

Just released version 0.3.20, in which queries will no longer automatically attempt to refetch in the background when using refetchInterval. If you want the query to refetch while in the background, there is now a query config option called refetchIntervalInBackground that you can set to true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants