Skip to content

Commit

Permalink
corrected object where refetch(), stopPolling(), startPolling() (#149)
Browse files Browse the repository at this point in the history
`refetch()`, `stopPolling()`, `startPolling()` are part of `queryObservable` not `subscription`
  • Loading branch information
purplecones authored and Sashko Stubailo committed Jul 19, 2016
1 parent 3a2fcf2 commit 3da979b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/source/apollo-client/queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,13 @@ const subscription = queryObservable.subscribe({
});

// Refetch the query if we want an updated result
subscription.refetch();
queryObservable.refetch();

// Stop polling this query
subscription.stopPolling();
queryObservable.stopPolling();

// Start polling this query
subscription.startPolling(100);
queryObservable.startPolling(100);

// Call when we're done watching this query
subscription.unsubscribe();
Expand Down

0 comments on commit 3da979b

Please sign in to comment.