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

(react/preact) - Suspense with child queries sharing data #1282

Merged
merged 2 commits into from
Jan 8, 2021

Conversation

JoviDeCroock
Copy link
Collaborator

@JoviDeCroock JoviDeCroock commented Jan 7, 2021

Summary

Fix Suspense when results share data, this would return partial results for graphCache and not update to the eventual data

Fixes: #1249 https://codesandbox.io/s/modest-chatterjee-s6c2g

Set of changes

  • Always reset the currentInit for state initialization

…ts for graphCache and not update to the non-partial equivalent
@changeset-bot
Copy link

changeset-bot bot commented Jan 7, 2021

🦋 Changeset detected

Latest commit: 0e7ad18

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@urql/preact Patch
urql Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@JoviDeCroock JoviDeCroock merged commit 6f62f06 into main Jan 8, 2021
@JoviDeCroock JoviDeCroock deleted the suspense-shared-results branch January 8, 2021 09:05
@github-actions github-actions bot mentioned this pull request Jan 8, 2021
@kitten
Copy link
Member

kitten commented Jan 8, 2021

Did this resolve #1253 too?

@JoviDeCroock
Copy link
Collaborator Author

JoviDeCroock commented Jan 8, 2021

Nope, it's the issue where invalidating entities rapidly while results come in would cause a nulled query-result (holding enter-key 😉 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Suspense: Partial delivery loses fields due to race conditions
3 participants