~/talk

Modelling Redux State

Talkat AngularUP 2018 · 2018-06-01..06-30· [frontend-architecture, angular]
slides:none on file

Explains concrete rules for Redux/ngrx state: stop nesting JSON and normalize and de-nest JSON so entities live in top-level “tables”; store entities as dictionaries with an entities: { ids, entities } shape to avoid duplicates and huge reducers; use the ngrx/entity adapter to convert arrays to dictionaries, provide add/update/remove helpers and entity-scoped loading/error flags; compose memoized composable selectors to query related records without expensive filters; result is simpler reducer logic, fewer renders and fast lookups by ID.

AI-written summary · about

  1. 0:00Introduction
  2. 3:06The Store
  3. 5:10Store Types
  4. 6:08Store Anti Patterns
  5. 8:52The Problem
  6. 12:30Example
  7. 12:54Relationships
  8. 13:30NGRX Entity
  9. 14:55Defining Properties
  10. 16:12Entity State
  11. 17:45Entity Adapter
  12. 19:11Initial State
  13. 21:03user adapter usage
  14. 21:42selectors
  15. 21:57selectors benefits
  16. 22:48adapter selectors
  17. 23:52big arrow functions
  18. 24:47how to use this within a component
  19. 25:29how to use this in HTML
  20. 26:18how to use this in relational data
~/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.