Skip to content
masterclass Buddy

Vue.js · Function

onUpdated

onUpdated registers a callback that runs after a reactive state change updates a component's DOM. Use nextTick() when you need to wait for one specific state change.

Last updated

Syntax

function onUpdated(callback: () => void, target?: ComponentInternalInstance | null): void

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • nextTick()
  • onMounted()
  • onUnmounted()
  • updated

Source: Composition API: Lifecycle Hooks | Vue.js. Checked 2026-11-03.