~/talk

Splitting the Work: Streaming Server Rendering with Suspense

Talkat Reactathon 2023 · 2023-05-02..05-03· [react, frontend-architecture]
slides:none on file

Shows how React 18 uses Suspense plus renderToPipeableStream to split server work so slow pieces don’t block the page: a heavy comments component is wrapped in Suspense, server sends fallback HTML first, then streams the comments’ rendered HTML and a placement script when its data is ready. The result is streaming HTML and selective hydration so other UI hydrates and accepts clicks while the slow component loads, prioritizing hydration for whatever the user interacts with.

AI-written summary · about

  1. 0:00Introduction to streaming
  2. 2:47Server rendering basics
  3. 5:55Problems with pre-React 18
  4. 10:31React 18 improvements
  5. 11:54How Suspense works
  6. 14:40Selective hydration benefits
  7. 17:13Conclusion and call to action
~/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.