-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Is that a bug which using startWith
before withLatestFrom
?
#1509
Comments
This is expected behavior.
In other words: values on the "left" side will be ignored until the "right" side emits. Side-note: It looks like you're using Rx 5 so you want that repo instead. This repo is for Rx 4 which is in maintenance-only mode. That said, I expect the answer above will apply to both versions. If you're interested to read more, and if you're in a position where you can't ensure the "right" will emit before the "left", there's a discussion and solution about using both combineLatest and withLatestFrom to avoid this behavior on StackOverflow. I ended up making a custom operator, waitLatestFrom -- although it's for Rx 4 it should be easy to adapt to Rx 5. |
When I only using startWith, it's works fine for me
output
But when uncomment
It's output
It's no sense with that result, isn't ?
The text was updated successfully, but these errors were encountered: