~/talk

Declarative Fetching Libraries

Talkat Connect.Tech 2022 · 2022-11-07..11-09· [frontend-architecture, graphql]
github:rvirani1
slides:none on file

Compares three libraries by behavior not buzzwords: Apollo is GraphQL-only and does normalized caching so a mutation updates that record everywhere; SWR is tiny (SWR ~11KB) and agnostic—simple fetcher, stale-while-revalidate and focus-based revalidation built in; TanStack/React Query is the heaviest, most full-featured, supports REST/GraphQL, persistent cache, polling, infinite queries, devtools and render-batching/selectors that skip re-renders when unused fields change. Practical takeaway: pick Apollo for GraphQL normalization, TanStack for power, SWR for minimalism.

AI-written summary · about

  1. 0:00Introduction and disclaimer
  2. 2:06Problem with boilerplate fetching
  3. 5:36Library overview and code basics
  4. 15:03Normalized caching explained
  5. 17:09Cache persistence options
  6. 18:11Polling and infinite queries
  7. 19:40Stale-while-revalidate strategy
  8. 20:42Fetch on focus behavior
  9. 21:45Render batching and selectors
  10. 23:31Dev tools comparison
  11. 24:34Audience experiences and Q&A
~/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.