initWatch() — vue Function Reference
Architecture documentation for the initWatch() function in state.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 994c6360_e527_7425_c190_6b0b2cacf6cb["initWatch()"] 079339bc_f0ce_0fd0_3d1b_26a2dc073616["state.ts"] 994c6360_e527_7425_c190_6b0b2cacf6cb -->|defined in| 079339bc_f0ce_0fd0_3d1b_26a2dc073616 ff5d1d58_05a4_1c98_682b_8814ac1fe9fd["initState()"] ff5d1d58_05a4_1c98_682b_8814ac1fe9fd -->|calls| 994c6360_e527_7425_c190_6b0b2cacf6cb 4cdb033a_f511_f759_d9d2_28da362d97b1["createWatcher()"] 994c6360_e527_7425_c190_6b0b2cacf6cb -->|calls| 4cdb033a_f511_f759_d9d2_28da362d97b1 style 994c6360_e527_7425_c190_6b0b2cacf6cb fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/core/instance/state.ts lines 312–323
function initWatch(vm: Component, watch: Object) {
for (const key in watch) {
const handler = watch[key]
if (isArray(handler)) {
for (let i = 0; i < handler.length; i++) {
createWatcher(vm, key, handler[i])
}
} else {
createWatcher(vm, key, handler)
}
}
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does initWatch() do?
initWatch() is a function in the vue codebase, defined in src/core/instance/state.ts.
Where is initWatch() defined?
initWatch() is defined in src/core/instance/state.ts at line 312.
What does initWatch() call?
initWatch() calls 1 function(s): createWatcher.
What calls initWatch()?
initWatch() is called by 1 function(s): initState.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free