Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(graphcache): Fix typo in results cache (#2741)

authored by

Phil Pluckthun and committed by
GitHub
11558486 7570219c

+6 -1
+5
.changeset/twelve-beds-appear.md
··· 1 + --- 2 + '@urql/exchange-graphcache': patch 3 + --- 4 + 5 + Fix referential equality preservation in Graphcache failing after API results, due to a typo writing the API result rather than the updated cache result.
+1 -1
exchanges/graphcache/src/cacheExchange.ts
··· 233 233 // Collect the query's dependencies for future pending operation updates 234 234 queryDependencies = queryResult.dependencies; 235 235 collectPendingOperations(pendingOperations, queryDependencies); 236 - results.set(operation.key, result.data); 236 + results.set(operation.key, data); 237 237 } 238 238 } else { 239 239 noopDataState(store.data, operation.key);