~/talk

Demystifying the Vue Lifecycle

Talkat Vueconf.US 2020 · 2020-03-02..03-04· [frontend-architecture, vue]
slides:none on file

Concrete lifecycle rules and concrete examples: use created for early network calls, use beforeMount dataset pull to seed state from an embedding, use mounted only for DOM-dependent libraries like Chartist, use beforeUpdate/updated for timing vs watches, and use errorCaptured to swallow or propagate errors. Watch out: v-for key pitfalls (index breaks when prepending) and refs are not reactive so use props/events, and use $nextTick to wait for DOM before reading newly rendered elements.

AI-written summary · about

  1. 0:00Introduction
  2. 1:10What is the cue Lifecycle?
  3. 1:48Lifecycle Hooks
  4. 2:42beforeCreate
  5. 3:13created
  6. 4:28beforeMount
  7. 6:13mounted
  8. 7:39beforeUpdate
  9. 8:07updated
  10. 9:09beforeDestroy
  11. 9:38destroyed
  12. 9:54errorCaptured
  13. 11:06Keep Alive Components
  14. 12:16activated
  15. 12:48deactivated
  16. 13:21Other pieces of the Vue instance
  17. 19:20Thank you!
~/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.