Skip to content

Commit 22b695c

Browse files
committed
Add changeset
1 parent 401aaab commit 22b695c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.changeset/sour-weeks-suffer.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
'@apollo/client': patch
3+
---
4+
5+
Throw errors in `useSuspenseQuery` for errors returned in incremental chunks when `errorPolicy` is `none`. This provides a more consistent behavior of the `errorPolicy` in the hook.
6+
7+
### Potentially breaking change
8+
9+
Previously, if you issued a query with `@defer` and relied on `errorPolicy: 'none'` to set the `error` property returned from `useSuspenseQuery` when the error was returned in an incremental chunk, this error is now thrown. Switch the `errorPolicy` to `all` to avoid throwing the error and instead return it in the `error` property.

0 commit comments

Comments
 (0)