Skip to content

Commit

Permalink
fix the issue partially by adding a re-execute catch, this however al…
Browse files Browse the repository at this point in the history
…so eats the error
  • Loading branch information
JoviDeCroock committed Nov 25, 2022
1 parent 89548fb commit 5a67e76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion exchanges/graphcache/src/cacheExchange.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,8 @@ export const cacheExchange = <C extends Partial<CacheExchangeOpts>>(
if (
operation.context.requestPolicy === 'cache-and-network' ||
(operation.context.requestPolicy === 'cache-first' &&
outcome === 'partial')
outcome === 'partial' &&
!reexecutingOperations.has(res.operation.key))
) {
result.stale = true;
if (!isBlockedByOptimisticUpdate(dependencies)) {
Expand Down

0 comments on commit 5a67e76

Please sign in to comment.