The Secret Sauce of State Management
summary
Explains how NgRx turns plain app state into efficient, composable queries and side‑effect handlers using concrete APIs: use createSelector to build memoized getters and derived state (selectors only recompute when arguments change), limit selector args to eight or factorize for very large joins (one attendee solved a 20‑entity join by factoring), derive booleans like authenticated from user objects, and run HTTP uploads or router listeners in effects with dispatch:false to avoid loops and createSelector memoizes only when args change.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 1:05Overview of NgRx and Angular
- 2:11What are selectors
- 4:00Getter and derived selectors
- 7:53Memoized selectors explained
- 9:23Composing complex selectors
- 11:58Advanced selector customization
- 13:43What are effects
- 15:26Effect decorators and operators
- 17:34Effects as action producers
- 19:41Side effects without actions
- 21:08Recap and closing
related talks
41mManaging State in Angular Applications
18mBuilding Sub States w/ NgRx Selectors
22mState Management Techniques and Family Therapy
34mNgRx: Tips & Tricks
23mState management with ngrx
41mThe Battle of State Management in modern frontend applications
30mState Management Patterns and Best Practices with NgRx
20mState Management at Scale w/NgRx
