~/talk

Efficient server state management

Talkat Vuejs Amsterdam 2024 · 2024-02-28..02-29· [frontend-architecture]
links:none on file
slides:none on file

Shows a concrete migration path to TanStack Query v5 for Vue with the TanStack Query v5 optionQuery API and demo code using Nuxt with SSR turned off plus Supabase and Tailwind, so it is not just theory. Implements placeholderData from list cache to avoid blank detail pages, demonstrates prefetch on mouseover, and performs optimistic updates via queryClient (cancel/get/set) and invalidateQueries. Everything in the demo runs end to end so you see what works and what needs stitching.

AI-written summary · about

  1. 0:00Introduction
  2. 1:40Server vs client state
  3. 3:51Client vs server state differences
  4. 5:59Server state challenges
  5. 8:30TanStack Query intro
  6. 10:35TanStack Query concepts
  7. 11:58Query config and usage
  8. 13:22Query staleness and revalidation
  9. 14:28Mutation handling
  10. 15:54QueryClient and advanced ops
  11. 16:36Demo setup
  12. 18:25Fetching data
  13. 19:50Query optimization
  14. 20:53Cached data for placeholders
  15. 23:01Prefetching on hover
  16. 24:53Mutations and invalidation
  17. 26:41Optimistic updates
  18. 27:24Resources and reading
  19. 28:07Alternatives to TanStack Query
  20. 29:00Closing 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.