~/talk

React: Lifting state up is killing your app

Talkat Agent Conf 2020 · 2020-01-23..01-26· [react, frontend-architecture]
slides:none on file

Claim: lifting state to the parent causes React to re-traverse and compare props for every cell, producing a multi-hundred-millisecond cost even when one cell updates. The demo builds a clickable data grid, profiles with React DevTools, throttles CPU, and shows a 150×150 grid (≈ 22,500 cells) where prop comparisons dominate. Refactor moves state down into a Field class, adds a useForcedRender hook, subscribes/unsubscribes per cell, and yields a single-cell re-render improvement in the profiler.

AI-written summary · about

  1. 0:00Start
  2. 2:03Source and the Historical Context
  3. 2:45Management Center
  4. 5:31The Code
  5. 7:24Performance Problems
  6. 11:16Set Cell Function
  7. 21:05Use Forced Render
  8. 24:28Unsubscribing from Cell Updates
~/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.