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): Add missing operations record on cache result (#3193)

authored by

Phil Pluckthun and committed by
GitHub
2a897772 cb628ca4

+6
+5
.changeset/sixty-masks-itch.md
··· 1 + --- 2 + '@urql/exchange-graphcache': patch 3 + --- 4 + 5 + Fix missing cache updates, when a query that was previously torn down restarts and retrieves results from the cache. In this case a regression caused cache updates to not be correctly applied to the queried results, since the operation wouldn’t be recognised properly
+1
exchanges/graphcache/src/cacheExchange.ts
··· 219 219 : 'miss'; 220 220 221 221 results.set(operation.key, result.data); 222 + operations.set(operation.key, operation); 222 223 updateDependencies(operation, result.dependencies); 223 224 224 225 return {