~/talk

Common Mistakes in Vue.js and How to Avoid Them

slides:none on file

Shows concrete bugs and fixes: a Pokemon shuffle demo proves using the index as a v-for key breaks nested component state and shuffling, adding a real unique key fixes it; a ticking counter uses a key to force transitions; replacing a reactive array loses reactivity so examples recommend prefer ref everywhere; computed that reads localStorage doesn’t update unless wrapped (VueUse suggested); mutating object props silently changes parent unless you clone object props; ESLint and Vue devtools catch many issues; survey: 83% find the Vue exam moderate to difficult.

AI-written summary · about

  1. 0:00Introduction
  2. 1:48Common Vue.js mistakes
  3. 2:09Index as key in v-for
  4. 8:15Key attribute beyond v-for
  5. 10:24Non-reactive computed properties
  6. 13:12Replacing reactive arrays incorrectly
  7. 17:44Prefer ref over reactive
  8. 20:58Mutating component props
  9. 27:28Course and resources
  10. 29:55Vue certification value
  11. 30:57Q&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.