nextTick() — vue Function Reference
Architecture documentation for the nextTick() function in next-tick.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD c7b631c5_e768_3daa_7580_aa7f38598d78["nextTick()"] b8db5ebb_37ca_9a58_b300_9c9942dd0428["handleError()"] c7b631c5_e768_3daa_7580_aa7f38598d78 -->|calls| b8db5ebb_37ca_9a58_b300_9c9942dd0428 597beed7_b0d5_8b25_6c0f_db8839a4bf2b["timerFunc()"] c7b631c5_e768_3daa_7580_aa7f38598d78 -->|calls| 597beed7_b0d5_8b25_6c0f_db8839a4bf2b style c7b631c5_e768_3daa_7580_aa7f38598d78 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