You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Comment out the error policy in useSuspenseQuery hook, you will see runtime error thrown despite the same error policy being declared in default options in src/apollo/apollo-wrapper.tsx
The text was updated successfully, but these errors were encountered:
useSuspenseQuery uses the watchQuery default options, which is why the behavior you're seeing seems ignored. Try changing query to watchQuery and it will work.
newNextSSRApolloClient({// use the `NextSSRInMemoryCache`, not the normal `InMemoryCache`cache: newNextSSRInMemoryCache(),defaultOptions: {watchQuery: {errorPolicy: "all",},},// ...})
Hi,
Setting defaultOptions errorPolicy to "all" in NextSSRApolloClient seems to be ignored.
See demo: https://codesandbox.io/p/github/tombryden/experimental-apollo-suspense-bug
Comment out the error policy in useSuspenseQuery hook, you will see runtime error thrown despite the same error policy being declared in default options in
src/apollo/apollo-wrapper.tsx
The text was updated successfully, but these errors were encountered: