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

set operation when updating the cache with a result (#2782)

Changed files
+6
.changeset
exchanges
graphcache
+5
.changeset/pink-melons-joke.md
···
···
+
---
+
'@urql/exchange-graphcache': patch
+
---
+
+
Set operations when updating the cache with a result
+1
exchanges/graphcache/src/cacheExchange.ts
···
// Update this operation's dependencies if it's a query
if (queryDependencies) {
updateDependencies(result.operation, queryDependencies);
}
···
// Update this operation's dependencies if it's a query
if (queryDependencies) {
+
operations.set(operation.key, operation);
updateDependencies(result.operation, queryDependencies);
}