~/talk

Data Fetching with React Query A Crash Course

Talkat UtahJS Conf 2023 · on Friday, 2023-09-15· [react]
slides:none on file

Shows a working CodeSandbox todo app that uses useQuery to fetch and cache to-dos and useMutation to add or clear items, with onSuccess handlers that invalidates cache and refetches—no Redux actions/reducers or useEffect boilerplate. Demonstrates retries, refetch-on-focus, devtools, SSR hydration, pagination (keepPreviousData), offline/localStorage queuing, cancelable requests, parallel queries via useQueries, and documented testing patterns; the example runs and updates the UI as expected.

AI-written summary · about

  1. 0:00Introduction
  2. 1:09What is React Query
  3. 3:16Custom hooks useQuery
  4. 8:12useMutation for updates
  5. 12:51Live code sandbox demo
  6. 16:24Advanced React Query features
  7. 20:17Closing and resources
~/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.