Closed
Description
The function signature in the documentation for updateQuery says it takes 2 parameters and returns TData
(previousResult: TData, options: { variables: TVariables }) => TData
https://www.apollographql.com/docs/react/api/react/hooks/#updatequery
However in the code it takes a mapFn parameter and returns void
apollo-client/src/core/ObservableQuery.ts
Line 602 in 3d039f8
Please also explain what mapFn is supposed to do because I was confused.