~/talk

How to write better composables

Talkat Vue.js Nation 2025 · 2025-01-29..01-30· [vue, developer-experience]
slides:none on file

Three concrete composable patterns and when they actually work: flexible arguments shows using ref and toValue so a composable accepts raw values, refs or getters without special casing; data store pattern demonstrates a module-scoped global State singleton (useUserSettings) using reactive + toRefs, exported selectors and methods — simpler and lighter than Pinia but missing SSR and DevTools support; thin reactive layer moves pure JS logic into testable functions and wraps them with computed/ref. Mentions a 16-pattern course and ~50 podcast episodes.

AI-written summary · about

  1. 0:00Introduction
  2. 2:10Flexible arguments pattern
  3. 8:40Data store pattern
  4. 19:06Thin reactive layer pattern
  5. 21:36Summary
  6. 23:44Q&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.