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(core): added in timer and interval id checks before clearing #3762

Merged
merged 2 commits into from
Jul 15, 2022

Conversation

dwilt
Copy link
Contributor

@dwilt dwilt commented Jun 29, 2022

clearInterval and clearTimeout are expensive to run and should only be ran if there is for sure an id to be cleared. This PR adds the checks in as discussed in #3756

@vercel
Copy link

vercel bot commented Jun 29, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
query ✅ Ready (Inspect) Visit Preview Jul 7, 2022 at 6:32PM (UTC)

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jun 29, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 0031a21:

Sandbox Source
TanStack/query: basic Configuration
TanStack/query: basic-typescript Configuration

@TkDodo
Copy link
Collaborator

TkDodo commented Jun 29, 2022

prettier is failing

@dwilt dwilt marked this pull request as ready for review July 7, 2022 18:31
@dwilt
Copy link
Contributor Author

dwilt commented Jul 7, 2022

@TkDodo should be fixed now

@TkDodo TkDodo merged commit 5d99f7e into TanStack:main Jul 15, 2022
@tannerlinsley
Copy link
Collaborator

🎉 This PR is included in version 3.39.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.

3 participants