[relay-runtime] Queuing subscriptions before applying
- Dominant language
- Rust
- Stars
- 19k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
I recently upgraded from relay v1.5.0 and previously handled subscriptions somewhat manually. My app can receive bursts of large amounts of subscriptions all at once, and so my implementation would push updates to the environment._publishQueue and then call run() at various intervals based on the current flow of subs. I did this so that the ui wouldn't be forced to update immediately on each subscription, which was previously placing a big load on the frontend ui. It worked great.
Now that I'm updating to v8.0.0 my previous implementation doesn't work, so I'm trying to re-learn how everything works in relay-runtime. But before I dig too deep, I'm wondering if there is already a mechanism in place to queue multiple subscriptions and then update the store all at once? As far as I understand, calling requestSubscription updates everything immediately.
Contributor guide
Assessment
This issue has not been assessed yet.