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

(core) - Prevent stale results from promisified sources #1709

Merged
merged 1 commit into from
Jun 9, 2021

Conversation

kitten
Copy link
Member

@kitten kitten commented Jun 8, 2021

Summary

Prevent stale results from being emitted by promisified query sources, e.g. client.query(...).toPromise() yielding a partial result with stale: true set. Instead, .toPromise() will now filter out stale results.

Set of changes

  • Add OperationResult limitation and filter operator to withPromise

@kitten kitten requested a review from JoviDeCroock June 8, 2021 14:54
@changeset-bot
Copy link

changeset-bot bot commented Jun 8, 2021

🦋 Changeset detected

Latest commit: 8b1de78

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

This PR includes changesets to release 1 package
Name Type
@urql/core 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

@kitten kitten merged commit eed4906 into main Jun 9, 2021
@kitten kitten deleted the feat/filter-stale-promisified-results branch June 9, 2021 10:57
@urql-ci urql-ci mentioned this pull request Jun 9, 2021
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.

2 participants