~/talk

Filling the Gap in State with NgRx ComponentStore

Talkat EnterpriseNG 2020 · 2020-11-19..11-20· [angular]
slides:none on file

A standalone local-state library claims to replace the “service with a Subject” pattern and actually ships as @ngrx/component-store, a compact implementation of about ~300 lines that provides select/updater/effect APIs. It shows concrete patterns: expose observables, use updaters for immutable writes, and use effects with operators like concatMap to serialize adds (or switch/merge/exhaust to change behavior) to avoid race conditions. Examples include component-scoped provisioning, lifecycle cleanup on destroy, and real-world use inside Firebase so the approach demonstrably works.

AI-written summary · about

  1. 0:00Start
  2. 3:59Component Tree
  3. 8:57Race Conditions
  4. 11:13Initialize the State
  5. 21:27The Shared Common Component State
~/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.