NgRx effects, entities, feature state and DevTools
Learn NgRx effects, entities, feature state and DevTools (Module 15 · State Management, Angular) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Effects: where side effects live • Effects listen to the stream of actions, perform side effects (HTTP calls, navigation, storage) and dispatch new actions with the result. They keep reducers pure and components thin. • Feature state : state split per feature, registered with provideState on a lazy route, so the code and its slice load together. • Entity management : @ngrx/entity manages collections as normalised ids + entities with ready-made add/update/remove methods. • Store DevTools : a browser extension view of every action and state, with time-travel.
More lessons in Module 15 · State Management
- Module 15 overview and checklist
- State fundamentals: local, shared, service, RxJS and Signals state
- Immutable updates, normalization, derived, loading and error state
- Authentication state, persisting state and browser storage
- NgRx fundamentals: Store, actions, reducers, selectors
- NgRx Signal Store
- State management testing and choosing an approach