~/talk

Data Fetching Done Right

Talkat React India 2024 · 2024-10-15..10-19· [frontend-architecture, web-performance]
links:none on file
slides:none on file

Describes moving initial data fetching out of lazy page chunks so assets and data download in parallel, using a custom Babel plugin that extracts pure client fetcher functions into a separate bundle, and tying those fetchers to predictive prefetch hooks with controllable low priority so prefetching does not overload backend. Provides a server counterpart that serializes route initial data to avoid double fetch on hydration. Implements demos on slow 3G showing near-instant navigation and ships as an npm beta @tata1mg/router.

AI-written summary · about

  1. 0:00Introduction
  2. 1:23Types of data fetching
  3. 2:26Fetch before render
  4. 3:51Render then fetch
  5. 4:52Render as you fetch
  6. 5:56Performance criteria
  7. 7:51Navigation process
  8. 10:04Parallelizing fetches
  9. 11:57Client fetcher implementation
  10. 14:13Existing useEffect approach
  11. 16:01Separating data fetching
  12. 16:42Prefetching data and assets
  13. 17:27Prefetch control
  14. 20:08Client-side navigation
  15. 20:29Server-side rendering
  16. 21:53Avoiding duplicate fetches
  17. 24:04Package 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.