The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Combination operator: withLatestFrom

Combination operator: withLatestFrom

4:02
Operator combineLatest is not the only AND-style combinator. In this lesson we will explore withLatestFrom, another AND-style combination operator, and how it works essentially as map() operator, with some combination properties.
Watch this lesson now
Avatar
egghead.io

Operator combineLatest is not the only AND-style combinator. In this lesson we will explore withLatestFrom, another AND-style combination operator, and how it works essentially as map() operator, with some combination properties.

Avatar
Rafael

I'm pretty sure I have the exact same code as you do and for some reason I get 'helLo' printed out, so just the second 'L' is set to upper case. Anyone else getting this?

edit: yep, just checked and even copying the code from this class and running it on JS Bin, the result is always 'helLo'. This behavior makes more sense to me anyways.

In reply to egghead.io
Avatar
Andre

Rafael, try different combinations of interval numbers (300 and 500) because in cases where two events happen "at the same time", RxJS might not be that precise since both intervals are scheduled with setInterval. What is important here is that withLatestFrom itself is not broken.

In reply to Rafael
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?