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): Disregard write-only operation during schema awareness (#3621)

authored by

Jovi De Croock and committed by
GitHub
4e52cf07 1bb05f58

+9 -1
+5
.changeset/lazy-kangaroos-think.md
··· 1 + --- 2 + "@urql/exchange-graphcache": patch 3 + --- 4 + 5 + Disregard write-only operation when fragment-matching with schema awareness
+4 -1
exchanges/graphcache/src/operations/shared.ts
··· 236 236 ctx.store.logger 237 237 )); 238 238 239 - if (isMatching || currentOperation === 'write') { 239 + if ( 240 + isMatching || 241 + (currentOperation === 'write' && !ctx.store.schema) 242 + ) { 240 243 if (process.env.NODE_ENV !== 'production') 241 244 pushDebugNode(typename, fragment); 242 245 const isFragmentOptional = isOptional(select);