Skip to content

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
Member

🎉 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

3 participants