Search⌘ K
AI Features

Live Filtering the Stream

Explore how to implement live filtering on stock data streams by combining multiple checkbox observables using RxJS. Learn to maintain cached data and dynamically update filters with operators like combineLatest and merge. This lesson guides you through creating reusable streams, grouping observables, and optimizing real-time filtering without losing in-flight data.

At this point, the stock graph shows four different stocks. We want to make the display of each stock configurable, which requires a live filter. We can’t write a static one and call it a day.

Live filtering

One solution is to simply recreate the entire observable stream on every click but that has the ...