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
{{ message }}
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.
basically: cache-and-network is not allowed on the one-shot query method because there's no way for a one-shot query to return more than one result. Therefore cache-and-network is only allowed for the watchQuery method (which is used by the useQuery hook). Try using the WatchQueryFetchPolicy type instead of the FetchPolicy type.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The
network-and-cache
fetchPolicy type seems to be missing from TypeScript options foruseApolloClient
which is not the case with theuseQuery
hook.Is this intended? Why doesn't it match the types for
useQuery
hook?The text was updated successfully, but these errors were encountered: