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
partialRefetch is included in ModifiableWatchQueryOptions but not QueryOptions, which DefaultOptions references. Is this intentional, and is it actually possible to default partialRefetch to true for all queries?
Versions
@apollo/client@3.0.0-beta.43
The text was updated successfully, but these errors were encountered:
From what I see it seems like the reason that this is not passing typeschecks is because it is now a default behavior and shouldent need to be defined in default options. It is still interesting that its failing, will keep looking into this.
I think a pretty simple solution is to merge the ModifiableWatchQueryOptions, QueryBaseOptions, and QueryActions types into one? I don't think this would have any consequences outside of src/core/watchQueryOptions.ts
Intended outcome:
Setting the defaultOptions on an ApolloClient instance to include partialRefetch: true.
According to this issue this should be possible:
apollographql/apollo-feature-requests#172
Actual outcome:
The above failed typechecks, the relevant types are:
partialRefetch is included in
ModifiableWatchQueryOptions
but notQueryOptions
, whichDefaultOptions
references. Is this intentional, and is it actually possible to default partialRefetch to true for all queries?Versions
@apollo/client@3.0.0-beta.43
The text was updated successfully, but these errors were encountered: