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 ssrExchange dropping network-only operations #2691

Merged
merged 1 commit into from
Sep 30, 2022

Conversation

kitten
Copy link
Member

@kitten kitten commented Sep 21, 2022

Resolve #2689
Resolve #2588

Summary

This fixes a not so subtle bug which caused all network-only operations to be dropped.
Essentially, this prevented staleWhileRevalidate from working on the ssrExchange itself, but also prevented other network-only operations from being forwarded to the next exchange at all, which caused no operation from being sent when this policy was used.

Set of changes

  • Add missing network-only exception to forwarded operations

@changeset-bot
Copy link

changeset-bot bot commented Sep 21, 2022

🦋 Changeset detected

Latest commit: ed6f038

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 merged commit 19d9e1c into main Sep 30, 2022
@JoviDeCroock JoviDeCroock deleted the fix/ssr-exchange-filter branch September 30, 2022 07:44
@urql-ci urql-ci mentioned this pull request Sep 30, 2022
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.

ssrExchange does not work with network-only staleWhileRevalidate does not cause a new network request
2 participants