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.

(graphcache) - Remove hasNext from stale results (#1911)

authored by

Phil Pluckthun and committed by
GitHub
b6b6baa5 01d5fa69

+5 -1
+5
.changeset/swift-apples-flash.md
··· 1 + --- 2 + '@urql/exchange-graphcache': patch 3 + --- 4 + 5 + Remove `hasNext: true` flag from stale responses. This was erroneously added in debugging, but leads to stale responses being marked with `hasNext`, which means the `dedupExchange` will keep waiting for further network responses.
-1
exchanges/graphcache/src/cacheExchange.ts
··· 322 322 outcome === 'partial') 323 323 ) { 324 324 result.stale = true; 325 - result.hasNext = true; 326 325 if (!isBlockedByOptimisticUpdate(dependencies)) { 327 326 client.reexecuteOperation( 328 327 toRequestPolicy(operation, 'network-only')