Skip to content

Glossary: Vue.js

watch

Also written: watch(), Watcher, watchers

A function that runs a callback whenever a ref or getter changes, receiving the new and old value. Use it for actions like saving or fetching; use `computed` to derive values.

Where the book teaches it

Related terms

watchEffectDeep watcherimmediatecomputed