Skip to content

Conversation

@boschni
Copy link
Collaborator

@boschni boschni commented Feb 3, 2021

Theoretically query observers can miss updates from a query if there was a query update between creating the observer and subscribing to the observer. With this change the observer will check if anything changed on subscribing and update if needed. Hopefully fixes #1657 .

@vercel
Copy link

vercel bot commented Feb 3, 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/od76fxr0l
✅ Preview: https://react-query-git-feature-fix-missed-updates.tannerlinsley.vercel.app

@boschni boschni force-pushed the feature/fix-missed-updates branch from 0a3e2ea to 58c30dd Compare February 4, 2021 07:43
@boschni boschni merged commit 397d8b7 into master Feb 4, 2021
@boschni boschni deleted the feature/fix-missed-updates branch February 4, 2021 07:50
@tannerlinsley
Copy link
Member

🎉 This PR is included in version 3.6.1 🎉

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

useQuery randomly not returning data and stuck in loading

3 participants