Convert RxJS Subjects to Observables

InstructorAndré Staltz

Share this video with your friends

Send Tweet

The use of RxJS Subjects is common, but not without problems. In this lesson we will see how they can be usually safely replaced with plain Observables.

etiya
~ 7 years ago

Great video André, thanks!

One note though: Despite being out of scope, using the share method here is probably worth mentioning, due to the fact that each subscription to click$ observable will attach a new event listener to the DOM otherwise.

ganqqwerty
~ 7 years ago

that's very valuable, I can use the first example to convert non-reactive widgets to the ones that support streams