~/talk

Simplifying Data Fetching in Vue with Data Loaders

Talkat Frontend Nation 2024 · 2024-06-04..06-07· [vue, frontend-architecture]
slides:none on file

Introduces a new API called data loaders that integrates with Vue Router and Pinia to centralize fetching, block or abort navigation until data resolves, and avoid duplicate requests; default behavior runs fetches parallel by default and delays UI updates until all loaders complete. Demo migrates a watcher-based gallery to DefineLoader + exported composables, shows sequential secondary fetches for high‑res images, requires a non-setup TS export and a router plugin, and works in the live demo.

AI-written summary · about

  1. 0:00Data loaders in Vue
  2. 1:26Traditional data fetching problems
  3. 3:35Limitations of Suspense
  4. 6:47Data loaders solve issues
  5. 8:58What is a data loader
  6. 10:02Migration demo setup
  7. 12:50Basic migration to DefineBasicLoader
  8. 14:14Composable with data loaders
  9. 16:00Sequential loading in search
  10. 17:29Search migration to data loaders
  11. 19:18Navigation control with loaders
  12. 20:01Finalizing search demo
~/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.