~/talk

Pinia Colada: Smooth Data Fetching for Better UX

Talkat Frontend Nation 2025 · 2025-06-03..06-05· [vue, frontend-architecture]
slides:none on file

Pinia Colada is a Vue plugin built on Pinia that provides a small (about 2.5 kilobytes) client-side query system with a centralized query cache and hierarchical keys so multiple components share the same promise instance. It implements fresh/stale timing, prefetching, a delay plugin to avoid flashing spinners, automatic refetch on invalidation, and optimistic updates for instant-feeling writes. The demo shows optimistic edits and background refetches working and the API is nearly stable with devtools support.

AI-written summary · about

  1. 0:00Pinia Colada and UX challenges
  2. 6:44Async state in Vue
  3. 9:35Pinia Colada core concepts
  4. 13:48Centralized cache benefits
  5. 16:16Fresh vs stale data refetch
  6. 19:03Tricking users for faster UX
  7. 21:54Delay plugin demo
  8. 23:40Optimistic updates in Pinia Colada
  9. 26:31Rollbacks and optimistic updates
  10. 27:33Extending with plugins
  11. 28:55UX improvements with Pinia Colada
  12. 30:22Q&A: Outside Pinia
  13. 30:42Q&A: Pinia Colada in NX
  14. 31:26Q&A: Pinia Colada vs Mastering Pinia
  15. 32:28Q&A: Differences with TanStack Query
  16. 34:18Closing remarks
~/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.