~/talk

Tips & Tricks for your Vue 3 applications

Talkat Vuejs Amsterdam 2021 · 2021-02-26..02-27· [javascript, frontend-architecture]
slides:none on file

Practical, code-level takeaways for Vue 3: use unref to accept refs or raw values and type generics so composables like a useInterval handle changing refs; build a customRef debounced search value set outside timeout to avoid lost keystrokes; avoid tying global state to a component lifespan by using app.provide + inject for a lazily created store and keep computed/watch creation inside callers; fetch route data reliably by putting loader functions in route meta and running them in beforeResolve so pages render with data already present.

AI-written summary · about

  1. 0:00Intro
  2. 1:23Composition API
  3. 2:33Unref
  4. 11:51Search
  5. 15:11Completion API
  6. 17:11Bug
  7. 18:25Inject
  8. 20:13Pina
  9. 21:04Data fetching
  10. 24:43Meta
~/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.