-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Polling #153
Conversation
@stubailo I think this should be good to. I'll open a PR on the docs as well |
@martijnwalraven @Urigo one thing I'm not sure about - should these helper functions be on the subscription handle, or the observable itself? It's a bit odd that |
Filed a followup issue, this looks amazing though! |
Update Redux devtools setup syntax
Added ability to poll endpoint on a per query basis
Per #145
Docs:
One way to create a reactive-esque query is to use polling. Apollo accepts a
pollInterval
on theWatchQueryOptions
which is the interval that a forced refetch will be called.Some cases may call for the ability to dynamically stop or start a polling interval on an existing query. The subscription handle returned by
handle.subscribe()
includesstopPolling
andstartPolling
methods. These can be used like so:Docs PR: https://github.com/apollostack/docs/pull/53