Skip to main content

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