RxJS 10 🟣 Hot vs. Cold & Multicasting — Sharing stream execution cleanly with share, shareReplay, and connectable
Every observable in RxJS is either cold or hot, and the distinction is about where the producer lives. A cold observable creates its producer when it is subscribed: http.get(‘/api/user’) issues the request at subscribe time, of(1, 2, 3) materialises the values at subscribe time, interval(1000) starts its timer at subscribe time. Two subscriptions mean two…