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): voidIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
nextTick()onMounted()onUnmounted()updated