Buffered combineLatest
#7461
griest024
started this conversation in
Ideas / Feature request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When multiple
combineLatest
sources emit at the same time (from an async perspective), I want the next emission ofcombineLatest
to include the latest emissions from all of the sources. This is a pretty common use case in applications: where multiple subscribed pieces of state are updated from a single API call and a component will want to see updated data from all pieces of state (not just whichever one happens to win the race condition). Plus this will improve performance by reducing the rerenders fromn
pieces of subscribed state to just1
.So I wrote a simple wrapper for
combineLatest
which accomplishes this. My question is, is there a creation function or operator already in rxjs that does this and if not, will you consider adding this feature?Beta Was this translation helpful? Give feedback.
All reactions