nextTick() — vue Function Reference
Architecture documentation for the nextTick() function in next-tick.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 1cefcbb5_8da7_601a_1ead_879af025d954["nextTick()"] d7e380c9_1d94_4f54_9ce8_7ba29b261101["handleError()"] 1cefcbb5_8da7_601a_1ead_879af025d954 -->|calls| d7e380c9_1d94_4f54_9ce8_7ba29b261101 40183ce3_c856_2972_4e0c_538305004190["timerFunc()"] 1cefcbb5_8da7_601a_1ead_879af025d954 -->|calls| 40183ce3_c856_2972_4e0c_538305004190 style 1cefcbb5_8da7_601a_1ead_879af025d954 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/core/util/next-tick.ts lines 94–117
export function nextTick(cb?: (...args: any[]) => any, ctx?: object) {
let _resolve
callbacks.push(() => {
if (cb) {
try {
cb.call(ctx)
} catch (e: any) {
handleError(e, ctx, 'nextTick')
}
} else if (_resolve) {
_resolve(ctx)
}
})
if (!pending) {
pending = true
timerFunc()
}
// $flow-disable-line
if (!cb && typeof Promise !== 'undefined') {
return new Promise(resolve => {
_resolve = resolve
})
}
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does nextTick() do?
nextTick() is a function in the vue codebase.
What does nextTick() call?
nextTick() calls 2 function(s): handleError, timerFunc.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free