Skip to content

Commit

Permalink
Use nextFetchPolicy when polling to restore original policy.
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamn committed Aug 24, 2020
1 parent 24a4396 commit c4d100f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/Reobserver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ export class Reobserver<TData, TVars> {
if (this.shouldFetch && this.shouldFetch()) {
this.reobserve({
fetchPolicy: "network-only",
nextFetchPolicy: this.options.fetchPolicy || "cache-first",
}, NetworkStatus.poll).then(poll, poll);
} else {
poll();
Expand Down

0 comments on commit c4d100f

Please sign in to comment.