+5
.changeset/five-icons-agree.md
+5
.changeset/five-icons-agree.md
···+Make "Invalid undefined" warning heuristic smarter and allow for partial optimistic results. Previously, when a partial optimistic result would be passed, a warning would be issued, and in production, fields would be deleted from the cache. Instead, we now only issue a warning if these fields aren't cached already.
-2
exchanges/graphcache/src/operations/query.test.ts
-2
exchanges/graphcache/src/operations/query.test.ts
+5
-3
exchanges/graphcache/src/operations/write.test.ts
+5
-3
exchanges/graphcache/src/operations/write.test.ts
···
+50
-33
exchanges/graphcache/src/operations/write.ts
+50
-33
exchanges/graphcache/src/operations/write.ts
························