Vue 3 · Reactivity
Run an effect with automatic tracking
Run immediately and re-run when any reactive value it reads changes.
watchEffect(() => console.log(count.value));
Vue 3 · Reactivity
Run immediately and re-run when any reactive value it reads changes.
watchEffect(() => console.log(count.value));
Was this page helpful?