-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refetch should not return partial data with errorPolicy none (#10321)
* chore: adds failing test for issue 10317 * chore: reset data to undefined on refetch with errorPolicy: none * chore: use watchQuery.errorPolicy for default value * chore: clean up test * chore: adds changeset * fix: shouldNotify should be false if errorPolicy: none and missing errors * fix: do not return cache data if errorPolicy none on refetch and missing errors * chore: undo whitespace removal * chore: add comment and test
- Loading branch information
Showing
3 changed files
with
241 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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 | ||
--- | ||
|
||
Refetch should not return partial data with `errorPolicy: none` and `notifyOnNetworkStatusChange: true`. |
This file contains 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 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