← All notes

Vue watchers: watch and watchEffect

Answer: Computed properties allow us to declaratively compute derived values. However, there are cases where we need to perform "side effects" in reaction to state changes, such as mutating the DOM, or changing another piece of state based on the result of an async operation. That is what watchers are for. (S1, S2)

Defaults of watch

watchEffect

Contrast with computed

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, Watchers, CC BY 4.0, text only (vuejs/docs); Vue.js docs, Computed Properties, CC BY 4.0, text only (vuejs/docs).

Cite this

Permanent ID: iil:note:n5ys5hv0

iinventedlight. 2026. "Vue watchers: watch and watchEffect." iinventedlight Library, iil:note:n5ys5hv0, version of 2026-11-04. https://iinventedlight.com/library/notes/vue-watchers/. License: CC-BY-4.0.

@misc{iil_note_n5ys5hv0,
  author = {{iinventedlight}},
  title = {{Vue watchers: watch and watchEffect}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-04},
  url = {https://iinventedlight.com/library/notes/vue-watchers/},
  note = {Permanent ID iil:note:n5ys5hv0. 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-watchers.md.