~/talk

The suspense quest Inside React's Magic

Talkat React Brussels 2024 · on Friday, 2024-10-18· [react]
slides:none on file

Explains how Suspense actually works: components throw the promise during render, the React work loop catches it, climbs the fiber tree to flag the nearest Suspense boundary, attaches a listener, and restarts rendering from that boundary so the fallback appears; resolved promises add a render flag to retry. Children remain mounted in an offscreen fiber visible=false to preserve state. Notes that React pre-renders siblings of the first child, that useSuspenseQuery can throw all promises at once to parallelize, and that a proposed R19 change to stop prerendering was rolled back.

AI-written summary · about

  1. 0:00Introduction
  2. 1:00Why use suspense
  3. 2:13How React Works
  4. 6:50What is Suspense
  5. 7:40First render
  6. 13:40How suspense works
  7. 15:46Two queries in a row
  8. 16:35What can we do
  9. 17:07Did you know
~/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.