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: prevent missing renders #1608

Merged
merged 1 commit into from
Jan 9, 2021
Merged

Conversation

boschni
Copy link
Collaborator

@boschni boschni commented Jan 9, 2021

Reverts the render optimization from #1487 because it is not guaranteed React will actually commit the render when a hook is called (renders might be discarded). Added a test to cover this behavior.

Fixes #1535

@vercel
Copy link

vercel bot commented Jan 9, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/tannerlinsley/react-query/ihhgk7puz
✅ Preview: https://react-query-git-feature-fix-missing-renders.tannerlinsley.vercel.app

@tannerlinsley tannerlinsley merged commit 5c93a2e into master Jan 9, 2021
@tannerlinsley tannerlinsley deleted the feature/fix-missing-renders branch January 9, 2021 20:31
@tannerlinsley
Copy link
Collaborator

🎉 This PR is included in version 3.5.12 🎉

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.

setQueryData not re-rendering the React Component
2 participants