-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Fix some wrong dataState values with network-only and errorPolicy: "none" queries
#13381
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
Open
jerelmiller
wants to merge
33
commits into
release-4.3
Choose a base branch
from
jerel/network-only-errors
base: release-4.3
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,045
−91
Open
Changes from 28 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
df2321e
Always apply streaming result so that errors that bubble to defer bou…
jerelmiller 5f08c11
Add changeset
jerelmiller b6b0121
Add failing test for defer with network-only and errors returned
jerelmiller 5a8e528
Update comment
jerelmiller fc58179
Add test to validate stream with complete errors truncates cache list
jerelmiller 7f2aa4c
Fix issue when defer boundary is delivered after its marked completed
jerelmiller d53e0fe
Add additional tests for incremental to ensure it prunes another case…
jerelmiller b143dcc
Add getPendingWithInfo to track whether pending item was delivered or…
jerelmiller 4471bfa
Remove getPendingType method
jerelmiller c5d565d
Remove pending property from request object
jerelmiller a5b22b5
Add changesets
jerelmiller 38d52de
Update api report
jerelmiller dccc472
Add failing test for defer with errorPolicy: "none"
jerelmiller 14e6eed
Add incrementalHandler property
jerelmiller 86b5e4a
Add public access to streamInfo
jerelmiller f2cc981
Access streamInfo from helper
jerelmiller 95bab66
Combine conditionals
jerelmiller e37478e
Truncate data with none error policy
jerelmiller 2f4d41c
Unconditionally set dataState on the result after merging with increm…
jerelmiller 9e7aa48
Fix dataState with errorPolicy: "none" when error bubbles to defer bo…
jerelmiller 1ea4918
Add failing test for wrong partial dataState
jerelmiller 0163e06
Compare hasNext instead of streamInfo in shouldWrite
jerelmiller 7ed55a7
Remove unused import
jerelmiller a79d205
Update api report
jerelmiller c1a32cc
Fix lint errors/warnings
jerelmiller d1c5573
Add test for no emit on mid-stream complete
jerelmiller f366a0d
Add test to guard against partial abandoned query
jerelmiller d3cdc0e
Remove unneeded cache-first
jerelmiller fc168f9
Update api report
jerelmiller fbef270
Change as any cast to different location
jerelmiller fd47624
Fix bad tsdoc comment syntax
jerelmiller cfe0a19
Mark streamInfo and getPendingWithInfo as internal
jerelmiller afeff3f
Mark concrete class with internal
jerelmiller File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@apollo/client": patch | ||
| --- | ||
|
|
||
| Fix an issue where a `network-only` query leaked partial cache data for `@defer` fragments that were not delivered by the network due to an error that bubbled to the `@defer` fragment boundary. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@apollo/client": patch | ||
| --- | ||
|
|
||
| Fix an issue where a `@defer` query reported the `dataState` as `complete` instead of `streaming` when an error occurs on a deferred field that bubbled to the defer boundary. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@apollo/client": patch | ||
| --- | ||
|
|
||
| Fix an invariant error thrown when a `@defer` boundary received a payload after it had already been marked complete. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.