Skip to content

Commit

Permalink
fix(core): default to notifyOnNetworkStatusChange
Browse files Browse the repository at this point in the history
  • Loading branch information
bennypowers committed Jun 1, 2023
1 parent b8321b2 commit 8ea9362
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/core/apollo-query-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export class ApolloQueryController<D, V = VariablesOf<D>>
context: this.options.context,
errorPolicy: this.options.errorPolicy,
fetchPolicy: this.options.fetchPolicy,
notifyOnNetworkStatusChange: this.options.notifyOnNetworkStatusChange,
notifyOnNetworkStatusChange: this.options.notifyOnNetworkStatusChange ?? true,
partialRefetch: this.options.partialRefetch,
pollInterval: this.options.pollInterval,
returnPartialData: this.options.returnPartialData,
Expand Down Expand Up @@ -246,7 +246,7 @@ export class ApolloQueryController<D, V = VariablesOf<D>>
context: this.options.context,
errorPolicy: this.options.errorPolicy,
fetchPolicy: this.options.fetchPolicy,
notifyOnNetworkStatusChange: this.options.notifyOnNetworkStatusChange,
notifyOnNetworkStatusChange: this.options.notifyOnNetworkStatusChange ?? true,
partialRefetch: this.options.partialRefetch,
pollInterval: this.options.pollInterval,
refetchWritePolicy: this.options.refetchWritePolicy,
Expand Down Expand Up @@ -303,7 +303,7 @@ export class ApolloQueryController<D, V = VariablesOf<D>>
fetchPolicy:
this.options.fetchPolicy === 'cache-and-network' ? undefined/* c8 ignore next */
: this.options.fetchPolicy,
notifyOnNetworkStatusChange: this.options.notifyOnNetworkStatusChange,
notifyOnNetworkStatusChange: this.options.notifyOnNetworkStatusChange ?? true,
partialRefetch: this.options.partialRefetch,
returnPartialData: this.options.returnPartialData,
...params,
Expand Down

0 comments on commit 8ea9362

Please sign in to comment.