~/talk

How Not To Use TanStack Query - Dan Neciu

Talkat React Paris 2026 · 2026-03-26..03-27· [react, frontend-architecture]
slides:none on file

A product built entirely on TanStack Query overloads the backend: spikes hit 1,400 requests per second and DB CPU reaches 100%, costing thousands. The team fires mutations that call invalidateQueries repeatedly, producing tens of extra refetches (examples: 66 → 11 after queuing) and retries after aborted slow requests amplify load. Changing mutations to return the full gamification state and using setQueryData removes many refetches (16 → 0), while turning off default retries on abort causing extra load limits repeat traffic.

AI-written summary · about

  1. 0:00Introduction
  2. 1:05Why TanStack Query
  3. 2:10From Context to Query
  4. 3:13Gamification Overuse
  5. 5:20Invalidation Spiral
  6. 6:42Performance Crisis
  7. 8:05Root Cause Analysis
  8. 9:28Queue Optimization
  9. 10:10Race Conditions
  10. 10:52Retry Misconceptions
  11. 11:34Optimistic Updates
  12. 12:35Stale Time Myth
  13. 13:18Cache Time Confusion
  14. 13:40Query Key Hierarchy
  15. 14:01Final Advice
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.