UpdateCacheHandler<TData, TVars> typedef

UpdateCacheHandler<TData, TVars> = void Function(CacheProxy proxy, OperationResponse<TData, TVars> response)

Updates the cache after receiving an OperationResponse.

Useful when merging mutation results that add items to a list, etc.

Implementation

typedef UpdateCacheHandler<TData, TVars> = void Function(
  CacheProxy proxy,
  OperationResponse<TData, TVars> response,
);