You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.
This is expected behavior. withLatestFrom needs a value from both sides before it will start emitting. The sequence above goes:
startWith emits immediately but withLatestFrom only has a cached "left" value and so doesn't emit.
The "right" side emits at 50 ms and that value is also cached in the withLatestFrom, however it doesn't emit because it only emits when the "left" side emits.
The "left" side emits at 100 ms and withLatestFrom finally emits with the new "left" value and the most recent "right" value.
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.
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: