Skip to content

vue-doctor/reactivity/no-missing-await-nextTick ​

Add await before nextTick() or use nextTick().then() to ensure DOM updates are applied

PropertyValue
CategoryReactivity
Default Severitywarning
Confidencemedium
FixableNo
Engineoxlint
Sincev1.0.0
Frameworksvue, nuxt

Why it matters ​

Add await before nextTick() or use nextTick().then() to ensure DOM updates are applied

How to fix ​

Review the finding and update the code according to best practices below.

Agent Guidance ​

nextTick() returns a promise. Add await in an async function, or chain .then(), before code that reads the updated DOM.


Rule source: vue-doctor/reactivity/no-missing-await-nextTick

Released under the MIT License.