~/talk

Untangling reducers into reusable patterns

Talkat React Day Bangalore 2021 · 2021-03-19..03-20· [react, frontend-architecture]
links:none on file
slides:none on file

Large switch-case reducers become opaque and error prone so a reducer factory pattern replaces the funnel by a declarative spec that maps each substate to the exact actions that affect it, reduces boilerplate, and lets patterns be tested in isolation. Configs support toggles, lists, payload transformers, and even generated actions and fetch operations. An implementation called reducer factory by kubrick already addresses many real app use cases and shortens reducer code in practice.

AI-written summary · about

  1. 0:00Start
  2. 0:20Why Do We Even Need To Talk about Reducers
  3. 3:39Mental Model
  4. 5:00Create a Constraint Based Funnel
  5. 9:46Easter Egg
  6. 10:26Recap
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.