~/talk

Tackling State in Angular Applications

Talkat Jazoon TechDays Spring 2017 · on Friday, 2017-04-28· [angular, frontend-architecture]
slides:none on file

A simple talks app surfaces six types of state (server, persistent cache, client, URL/router, transient client storage, local UI) and shows how optimistic rating and filter updates break when requests race. A concrete bug: two rating requests leave client unrated while server records the last value. The fix separates state from side effects, stores immutable state (Redux/ngrx pattern), emits distinct actions like submitRate/unrate for undo, and uses switchMap cancels stale requests and make URL the source of truth to eliminate races.

AI-written summary · about

  1. 0:00Introduction to state
  2. 1:32Six types of application state
  3. 5:00The synchronization problem
  4. 8:45URL and client state sync
  5. 11:28Identifying core issues
  6. 13:47Structuring with NgRx
  7. 20:40URL as the source of truth
  8. 26:08Conclusion and takeaways
~/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.