~/talk

5 Patterns for Better Components in Vue.js

Talkat VueConf Toronto 2023 · 2023-11-08..11-09· [component-design, vue]
slides:none on file

Five concrete component patterns: data store singleton — a composable that defines reactive refs outside the function, exposes read-only state plus setters (works without Pinia but lacks SSR/devtools); extract conditional — pull each v-if branch into its own component; preserve object pattern — pass whole objects for easier TypeScript and future fields; list component — encapsulate map/loop logic behind a List suffix component; hidden components/split-by-functionality — break or combine components for cohesion. Includes refactoring steps and an example course.

AI-written summary · about

  1. 0:00Introduction to Vue.js patterns
  2. 1:03Data store pattern explained
  3. 8:50Breaking up components
  4. 13:32Preserve object pattern
  5. 17:35Extract conditional pattern
  6. 21:53List component pattern
  7. 22:33Combining components
  8. 24:43Course and resources overview
  9. 28:48Q&A and closing
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.