To me Ngrx store solves multiple issues . For example when you have to deal with observables and when responsability for some observable data is shared between different components. In this case store actions and reducer ensure that data modifications will always be performed “the right way”.
Read moreWhat is NgRx component store?
@ngrx/component-storelink ComponentStore is a standalone library that helps to manage local/component state . It’s an alternative to push-based “Service with a Subject”.
Read moreDoes NgRx improve performance?
It’s already well known that Angular’s OnPush ChangeDetectionStrategy can measurably improve app performance and that NgRx’s immutable state works really well with it .
Read moreWhat is the advantage of using NgRx store?
Ngrx/Store implements the Redux pattern using the well-known RxJS observables of Angular 2. It provides several advantages by simplifying your application state to plain objects , enforcing unidirectional data flow, and more.
Read moreWhat is a good use case for NgRx store?
Testability as @muetzerich mentioned already is also a benefit of using ngrx/store. Reducers are pure functions and those functions are easy to test, because they take an input and simply return an output and do not depend on properties outside the function and have no side-effects, e.g. http calls etc.
Read moreWhy we use NgRx store in Angular?
Inspired by Redux, NgRx provides a way to maintain data in your Angular application as a single source of truth . NgRx uses streams to interact with a data store. This data store connects to your components and services, and ultimately simplifies the entire process of data management in your Angular application.
Read moreWhat is NgRx store?
Ngrx is a group of Angular libraries for reactive extensions . Ngrx/Store implements the Redux pattern using the well-known RxJS observables of Angular 2. It provides several advantages by simplifying your application state to plain objects, enforcing unidirectional data flow, and more.
Read more