-
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
Batch polling queries #164
Comments
@stubailo that's sounds like a lot of fun to build haha |
Haha also I think it would be a really really cool thing to have - your whole UI updates on a consistent timer, so you don't have a ton of random data coming in all the time. |
Probably related to #25 I wonder how to make this work with precompiled queries, probably needs to be able to send a list of operations, which GraphQL-JS doesn't support right now I think? |
Something to think about in the future. |
I think using observables makes sense here. Imagine this:
Let me know if this makes sense at all and if you think it would even work. I am happy to answer questions and discuss this more. |
By observable, do you mean RxJS here? Because most of the things you're talking about aren't part of the observable spec. If so, we need to make sure we can avoid loading all of RxJS. |
Yeah I meant RxJS. Hopefully we can get by with rx-lite and not the whole thing. |
I also feel there might be a simpler solution with a regular timer and redux keeping track of some of the state. |
See #277. |
Right now, if you set
pollingInterval
on many queries, they will all be sending independent requests on their own schedule. We should see if we can schedule them in a smarter way.The text was updated successfully, but these errors were encountered: