~/talk

Common Mistakes in Vue.js and How to Avoid Them

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

Covers four concrete Vue mistakes and fixes: using index as key breaks components with internal state when array order changes — fix by using a unique id (and keys to force re-renders); treating browser APIs as reactive — use useLocalStorage (VueUse) or wrap values in refs; replacing a reactive object loses reactivity — prefer ref and mutate its contents instead of reassigning; mutating props directly — use the defineModel macro or clone objects (JSON.parse/JSON.stringify) and emit updates to the parent.

AI-written summary · about

  1. 0:00Common Mistakes in Vue.js and How to Avoid Them
  2. 2:00Mistake 1
  3. 7:16Mistake 2
  4. 12:29Mistake 3
  5. 16:14Mistake 4
~/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.