~/talk

When To Fetch: Remixing React Router

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

React Router adds route loaders that initiate fetches before render, returning Responses or fetch calls and exposing results to components via useLoaderData instead of in-component effects. Nested loaders run in parallel, removing spinner waterfalls and cutting full-page render time roughly in half in demos; loaders coexist with React Query or SWR. Server-side deferred streaming sends initial HTML then streams data chunks so critical assets and a prioritized resource (demo uses awaited Pokemon) render immediately, improving LCP/TTI. Links support prefetch=“intent” to warm caches.

AI-written summary · about

  1. 0:00Introduction
  2. 1:04React Router History
  3. 1:43The Status Quo of Data
  4. 3:29Using React Query
  5. 4:15Understanding Suspense
  6. 6:11React 18 and RSC
  7. 7:56React Router Loaders
  8. 9:31Nested Routing Concepts
  9. 11:43Combining Tools
  10. 13:23Mutations and Performance
  11. 15:20Server-Side Data Loading
  12. 17:06Caching and Transitions
  13. 18:30Prefetching Techniques
  14. 20:04Streaming Explained
  15. 22:54Streaming Demo and Conclusion
~/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.