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

fix(query-cache): Prevent re-run of query for refetch interval if update is disabled #640

Merged

Conversation

bishwenduk029
Copy link
Contributor

This PR resolves the issue: #635.

instance => instance.config.refetchIntervalInBackground
instance =>
instance.config.refetchIntervalInBackground &&
instance.config.enabled
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This check needs to happen before the is document visible. If the query doesn’t have an enabled instance, then we should never even reach these other conditions.

@tannerlinsley tannerlinsley merged commit db5a51e into TanStack:master Jun 27, 2020
@tannerlinsley
Copy link
Collaborator

🎉 This PR is included in version 2.4.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

2 participants