~/talk

Let's kill lifecycle

Talkat FrontTalks 2018 · 2018-09-14..09-15· [react, frontend-architecture]
links:none on file
slides:none on file

Claim: React lifecycle methods make components fragile and hard to reason about, so move side effects out of component methods into reactive business logic. Shows a concrete five-field form with three business rules and three implementations: a lifecycle-heavy component that becomes unmaintainable; a modular but verbose approach using redux-saga (watchers/workers, selectors, put/select); and a concise reactive approach using RxJS switchMap / redux-observable that avoids race conditions, keeps rules testable, and isolates lifecycle concerns (tradeoffs: middleware boilerplate and learning curve).

AI-written summary · about

  1. 0:00Introduction
  2. 3:22Lifecycle problems in React
  3. 6:11Complex form with lifecycle example
  4. 10:13Solution: Redux Saga and middleware
  5. 12:43Redux Saga solution demo
  6. 17:06Alternative: Redux Observable and RxJS
  7. 21:28Custom RxJS operators
  8. 24:07ReactoRex: RxJS and Redux integration
  9. 27:48Summary
  10. 28:51Q&A
~/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.