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(core): fix issue with synchronous toPromise queries #2386

Merged
merged 1 commit into from
Apr 7, 2022

Conversation

JoviDeCroock
Copy link
Collaborator

Resolves #2364

Summary

Fix issue where a synchronous toPromise() return would not result in the stream tearing down, this would make it so that subsequent calls would not pass through the exchange-chain

Set of changes

  • refactor the implementation of toPromise to leverage a subscription that returns on first non-stale completed result

@changeset-bot
Copy link

changeset-bot bot commented Apr 7, 2022

🦋 Changeset detected

Latest commit: 9d0b01b

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

@JoviDeCroock JoviDeCroock requested a review from kitten April 7, 2022 22:52
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.

@urql/core requestPolicyExchange upgrade does not result in network request
2 participants