When implementing the user story to list top stories in the last chapter, the actual data is stored in RxJS observables. Although the implementation in the ItemService is very concise, it’s not very easy to understand, especially the usage of different RxJS operators. The combination of RxJS operators can be very complicated, which makes the debugging and testing very hard. It’s better to use explicit state management in the app. We’ll use NgRx for state management.
The Importance of State Management
You may wonder why the concept of state management is introduced ...