RxJs & Reactive Programming - Part 4 - Subjects vs Observables (eager multi-cast vs lazy uni-cast)

Опубликовано: 16 Июнь 2026
на канале: Josh Ribakoff
2,306
85

In this video I explain how subjects are live before there are any subscribers, and after unsubscribing. I show how observables are lazy, they are not live until you subscribe. Furthermore, I explain how observables help you not close over shared state (a common cause of bugs). I show how each observable's subscriber gets its own stream, with it's own state.