~/talk

React Query API Design: Lessons Learned

Talkat React Paris 2025 · 2025-03-20..03-21· [react, developer-experience]
slides:none on file

React Query claims adoption in ~20% of React apps and traces concrete API decisions: it adds a new network mode in v4, replaces positional overloads so useQuery now uses option syntax, trims type definitions from 125→25 lines, removes per-query lifecycle callbacks and replaces a flawed refetchPage idea with a maxPages cache limit for infinite queries; versions and semver tradeoffs are debated and early beta testing proves critical because many breaking behaviors only show up when users try prereleases.

AI-written summary · about

  1. 0:00Introduction
  2. 0:33API design philosophy
  3. 10:08Major version pitfalls
  4. 10:24TypeScript and API design
  5. 12:27Managing feature demands
  6. 13:00Learning from mistakes
  7. 13:34Holistic API solutions
  8. 16:33Inversion of control
  9. 17:07Pragmatism and final thoughts
~/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.