~/talk

React 18 Concurrency, Explained

Talkat performance.now() 2022 · 2022-10-27..10-28· [react, frontend-architecture]

Explains how React 18 implements concurrency: concrete APIs like startTransition/useTransition and Suspense for hydration, Chromium 87 hooks, and the low-level scheduling trickery (messageChannel/setTimeout) that gives control back to the browser every ~5ms so renders yield between frames. Shows numbers and effects: blocks drop TBT but non‑urgent updates take longer and overall CPU rises; single long component still blocks. Notes why Vue/Preact refuse and when Suspense hydration helps or hurts.

AI-written summary · about

  1. 0:00Introduction
  2. 2:49Slow app with React 17
  3. 7:50Urgent updates in React 17
  4. 10:39Non-urgent updates in React 18
  5. 13:06useTransition for renders
  6. 18:10Concurrent rendering in React 18
  7. 25:33Concurrent hydration with Suspense
  8. 30:12Why wrapping entire app in Suspense is bad
  9. 33:22Drawbacks of concurrency
  10. 41:26Summary
~/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.