~/talk

Migrating from Vue 2 Class Components

Talkat VueConf US 2024 · 2024-05-15..05-17· [vue]
slides:none on file

Pocket Prep migrates its four apps plus a shared UI library from Vue 2 class components to Vue 3 by installing view-facing-decorator and doing a global find/replace of the old class/decorator imports. Migration mainly works: most components run on V3 after swapping imports, but class property initializers that reference this must move to lifecycle hooks, emitted events need declarations (the emit decorator automates some of that), and router hooks nest differently. Team then migrates components incrementally toward script setup for a cleaner TypeScript experience.

AI-written summary · about

  1. 0:00Migrating from Vue 2 Class Components
  2. 1:29Pocket Prep's story
  3. 2:07Options API - Class Components
  4. 10:57Class Components - Composition API
~/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.