5
Combining Streams
So far, we have learned about the reactive pattern to fetch data as streams and have covered error-handling patterns. However, we have only explored the asynchronous data emitted from only one stream. What if we want to work with the asynchronous data emitted from different streams? Do you know how we can proceed?
Luckily, RxJS ships with one of the most powerful concepts: combining streams. Combining streams is the process of bringing together the emissions of multiple Observables in one stream. This allows you to explore multiple sources of asynchronous data as if they were a single stream. The main idea behind combining streams is manipulating asynchronous data in a more structured way.
This chapter revolves around a common ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access