← All notes

Lifecycle hooks in Vue

Answer: Each Vue component instance goes through a series of initialization steps when it's created. Along the way, it also runs functions called lifecycle hooks, giving users the opportunity to add their own code at specific stages. (S1)

Common hooks

Template refs need mounting

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted).

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Vue.js docs, Lifecycle Hooks, CC BY 4.0, text only (vuejs/docs); Vue.js docs, Template Refs, CC BY 4.0, text only (vuejs/docs).

Cite this

Permanent ID: iil:note:7em87chs

iinventedlight. 2026. "Lifecycle hooks in Vue." iinventedlight Library, iil:note:7em87chs, version of 2026-11-04. https://iinventedlight.com/library/notes/vue-lifecycle-hooks/. License: CC-BY-4.0.

@misc{iil_note_7em87chs,
  author = {{iinventedlight}},
  title = {{Lifecycle hooks in Vue}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-04},
  url = {https://iinventedlight.com/library/notes/vue-lifecycle-hooks/},
  note = {Permanent ID iil:note:7em87chs. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com.

For language models and agents: start at /llms.txt. This page in Markdown: /library/notes/vue-lifecycle-hooks.md.