Skip to content

Commit

Permalink
Fix subscribetoMore to recognize fetch policy
Browse files Browse the repository at this point in the history
Related to #3773.
  • Loading branch information
nuragic committed Jan 15, 2020
1 parent ce3fe00 commit 4b1390f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/core/ObservableQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ export class ObservableQuery<
const subscription = this.queryManager
.startGraphQLSubscription({
query: options.document,
fetchPolicy: options.fetchPolicy,
variables: options.variables,
})
.subscribe({
Expand Down
1 change: 1 addition & 0 deletions src/core/watchQueryOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ export type SubscribeToMoreOptions<
> = {
document: DocumentNode;
variables?: TSubscriptionVariables;
fetchPolicy?: FetchPolicy;
updateQuery?: UpdateQueryFn<TData, TSubscriptionVariables, TSubscriptionData>;
onError?: (error: Error) => void;
};
Expand Down

0 comments on commit 4b1390f

Please sign in to comment.