UpdateCacheHandler<T> typedef

void UpdateCacheHandler (
  1. CacheProxy proxy,
  2. QueryResponse<T> response

Update the cache after receiving a QueryResponse. Useful when merging mutation results that add items to a list, etc. Note: if a callback is provided, updateCache is also run immediately with the optimisticResponse.


typedef UpdateCacheHandler<T> = void Function(
  CacheProxy proxy,
  QueryResponse<T> response,