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(core): add back cacheOutcome (#3464)

authored by

Jovi De Croock and committed by
GitHub
93d7256a ef2b57d1

+11 -8
+5
.changeset/silly-pigs-return.md
··· 1 + --- 2 + '@urql/core': patch 3 + --- 4 + 5 + Add back our cache-outcome on the document-cache, this was behind a development flag however in our normalized cache we always add it already
+6 -8
packages/core/src/exchanges/cache.ts
··· 86 86 data: null, 87 87 }); 88 88 89 - if (process.env.NODE_ENV !== 'production') { 90 - result = { 91 - ...result, 92 - operation: addMetadata(operation, { 93 - cacheOutcome: cachedResult ? 'hit' : 'miss', 94 - }), 95 - }; 96 - } 89 + result = { 90 + ...result, 91 + operation: addMetadata(operation, { 92 + cacheOutcome: cachedResult ? 'hit' : 'miss', 93 + }), 94 + }; 97 95 98 96 if (operation.context.requestPolicy === 'cache-and-network') { 99 97 result.stale = true;