Skip to content
This repository has been archived by the owner on Jul 6, 2020. It is now read-only.

Commit

Permalink
Fix reexecuted dependency operations not using cache-first
Browse files Browse the repository at this point in the history
  • Loading branch information
kitten committed Sep 12, 2019
1 parent b3d0944 commit 0bd58f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/exchange.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ export const cacheExchange = (opts?: CacheExchangeOpts): Exchange => ({
const op = ops.get(key);
if (op !== undefined) {
ops.delete(key);
client.reexecuteOperation(op);
const cacheFirst = toRequestPolicy(op, 'cache-first');
client.reexecuteOperation(cacheFirst);
}
}
});
Expand Down

0 comments on commit 0bd58f6

Please sign in to comment.