We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1bb05f5 commit 4e52cf0Copy full SHA for 4e52cf0
.changeset/lazy-kangaroos-think.md
@@ -0,0 +1,5 @@
1
+---
2
+"@urql/exchange-graphcache": patch
3
4
+
5
+Disregard write-only operation when fragment-matching with schema awareness
exchanges/graphcache/src/operations/shared.ts
@@ -236,7 +236,10 @@ export function makeSelectionIterator(
236
ctx.store.logger
237
));
238
239
- if (isMatching || currentOperation === 'write') {
+ if (
240
+ isMatching ||
241
+ (currentOperation === 'write' && !ctx.store.schema)
242
+ ) {
243
if (process.env.NODE_ENV !== 'production')
244
pushDebugNode(typename, fragment);
245
const isFragmentOptional = isOptional(select);
0 commit comments