Chapter 6: Combining Streams
Now that we have learned about how to use the reactive pattern to fetch data as streams and have covered the error handling patterns, let's start playing with streams. One of the most powerful utilities provided by RxJS that I have found extremely useful is the combination of streams, and this is the heart of this chapter.
This chapter revolves around a common use case, filtering data, that we will resolve by combining streams. We will start by explaining the requirement, and then we will explore the imperative, classic pattern that can be used to implement this requirement followed by a look at the declarative, reactive pattern for it.
In this chapter, we're going to cover the following main topics:
- Defining the requirement
- Exploring the imperative pattern for filtering data
- Exploring the declarative pattern for filtering data