Skip to content

Commit

Permalink
make sure to clean context during tearDownQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
dotansimha committed Nov 2, 2020
1 parent b878385 commit 0ba5abd
Showing 1 changed file with 1 addition 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 @@ -633,6 +633,7 @@ once, rather than every time you call fetchMore.`);
}

this.isTornDown = true;
this.options.context = undefined;

// stop all active GraphQL subscriptions
this.subscriptions.forEach(sub => sub.unsubscribe());
Expand Down

0 comments on commit 0ba5abd

Please sign in to comment.