~/talk

React Query API Design – Lessons Learned

Talkat React Advanced 2024 · 2024-10-25..10-29· [react, developer-experience]
slides:none on file

React Query claims ~20% adoption across React apps and explains specific API choices: it consolidates useQuery to an options object and removed positional overloads, shrinking type code from 125 to 25 lines; it replaces a risky refetchPage idea for infinite scrolling with a maxPages cache limit to avoid inconsistent UI; it leverages TypeScript early, keeps complex features out of core (debounce left to userland), and fixes a v4 state bug that caused eternal loading before v5 patched it.

AI-written summary · about

  1. 0:00Introduction
  2. 1:34React Query API design
  3. 5:03Major version challenges
  4. 8:13TypeScript importance
  5. 10:41User demands vs library focus
  6. 14:12Feature requests rejected
  7. 17:01Handling unhappy users
  8. 18:46Improving open source
~/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.