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
The generic T type gets passed into ApolloCache, however this cache object doesn't have anything to do with the fetch result. To me this looks wrong, and ends up describing parts of the ApolloCache incorrectly.
The text was updated successfully, but these errors were encountered:
@dphrag You're right about this! We've rewritten these types in the upcoming Apollo Client v3.4 release (see #7902), and the MutationUpdaterFunction type now looks like this:
If you have a chance, try updating with npm i @apollo/client@beta. We're in the Release Candidate phase of testing, so the prerelease versions should be pretty stable at this point.
In
node_modules\@apollo\client\core\watchQueryOptions.d.ts
the MutationUpdaterFn is defined asexport declare type MutationUpdaterFn<T = { [key: string]: any; }> = (cache: ApolloCache<T>, mutationResult: FetchResult<T>) => void;
The generic T type gets passed into ApolloCache, however this cache object doesn't have anything to do with the fetch result. To me this looks wrong, and ends up describing parts of the ApolloCache incorrectly.
The text was updated successfully, but these errors were encountered: