~/talk

Deep down the rabbit hole of state management and server cache

Talkat Øredev 2022 · 2022-11-08..11-10· [frontend-architecture]
slides:none on file

Argues that local UI state and server cache need different solutions, demonstrating with Vue + Pinia and Vue Query (react-query) cache instead of custom flags; shows a live Alice characters app, sets staleTime 5s demo (suggesting real apps use minutes), and discovers the default retry is 3 retries then reduces it to 1. Implements fetching, per-id queries, a mutation that posts a new Caterpillar and updates cache with setQueryData — the UI reflects the change and the approach works.

AI-written summary · about

  1. 0:00Introduction
  2. 1:07State management complexity
  3. 3:19Evolving with server data
  4. 9:21Local vs server cache
  5. 10:25Live coding Vue Query
  6. 18:54Client-side caching with staleTime
  7. 20:18Fetching single character
  8. 22:08Mutating server cache
  9. 26:24Advanced features & closing
~/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.