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

don't schedule garbage collection unnecessarily #627

Merged
merged 1 commit into from
Jun 24, 2020

Conversation

kentcdodds
Copy link
Member

This doesn't actually fix the issue I'm looking into, but I did notice that this timeout is scheduled even when the query is cleared and I think it shouldn't be. If we do need to garbage collect something, that should happen in clear I think.

Feel free to ignore this PR. This is just a drive-by note more than a real contribution.

This doesn't actually fix the issue I'm looking into, but I did notice that this timeout is scheduled even when the query is cleared and I *think* it shouldn't be. If we do need to garbage collect something, that should happen in `clear` I think.

Feel free to ignore this PR. This is just a drive-by note more than a real contribution.
@tannerlinsley
Copy link
Collaborator

I like it.

@tannerlinsley tannerlinsley merged commit 1e1e0f6 into TanStack:master Jun 24, 2020
@kentcdodds kentcdodds deleted the patch-2 branch June 24, 2020 18:27
@tannerlinsley
Copy link
Collaborator

🎉 This PR is included in version 2.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

kizivat pushed a commit to kizivat/react-query that referenced this pull request Jun 25, 2020
This doesn't actually fix the issue I'm looking into, but I did notice that this timeout is scheduled even when the query is cleared and I *think* it shouldn't be. If we do need to garbage collect something, that should happen in `clear` I think.
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