loading...

Discussion on: Nobody has to use HostListener

Collapse
oleksandr profile image
Oleksandr

Thanks for article!
Btw takeUntil(mouseDown$) will complete the sequence. Should we add repeat() to ressurect it ?

Collapse
niklas_wortmann profile image
Jan-Niklas Wortmann Author

the takeUntil is applied to the inner stream and we don't want this to repeat. It is going to be recreated with the next notification coming from the fromEvent. The indention is propably a little bit missleading

Collapse
oleksandr profile image
Oleksandr

Ah, yes! Missed that it is for inner observable, thanks