~/talk

Data Fetching Strategies with React Server Components

Talkat UtahJS Conf 2024 · on Friday, 2024-09-13· [react, frontend-architecture]
slides:none on file

React Server Components stream HTML from the server, auto split bundles, and let components export default async to await Prisma or file reads directly, pausing render and using Suspense fallbacks. Next.js/Redwood extend server-side fetch with built‑in caching and invalidation while experimental use server actions expose async mutate endpoints that are not cached. Strategy choices include sequential (component-by-component) or parallel (Promise.all) fetching; React Query/TanStack can prefetch and hydrate if already in use.

AI-written summary · about

  1. 0:00Introduction
  2. 1:09What are React Server Components
  3. 5:23History of React rendering
  4. 8:10React Server Components benefits
  5. 10:35Setting up React Server Components
  6. 11:18Fetching data in RSCs
  7. 12:00Async data access in RSCs
  8. 14:30Server actions for data
  9. 17:21Using fetch API in RSCs
  10. 18:43Third-party libraries for fetching
  11. 21:31Data loading strategies
  12. 22:32Sequential vs parallel fetching
  13. 24:40Recap and closing
~/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.