~/talk

Understanding the Selector Pattern and Memoization in ngrx

Talkat DevFest Ukraine 2018 · 2018-10-12..10-13· [angular, frontend-architecture]
slides:none on file

Explains how the Selector Pattern turns raw state into derived views with concrete code: builds a counter app with increment/decrement/reset (payload-driven reset), wires actions and reducers, and uses the Select API to push values to presentational components. Shows a meta-reducer for multiple instances that routes actions by target id so many counters share one reducer. Demonstrates that ngrx uses memoization cache slot limitation and that replacing selector memoization with an external lib yields large speedups when filtering big arrays.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 5:01Fundamentals of ngrx
  3. 14:10Counter example setup
  4. 26:46Reducers and multiple counters
  5. 30:46Understanding selectors
  6. 38:15Memoization in ngrx
  7. 40:44Resources and conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.