initWatch() — vue Function Reference
Architecture documentation for the initWatch() function in state.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD e09d42c3_b0fe_1115_a309_cb10f1485458["initWatch()"] a45b86d7_95dc_3c82_51a7_1bc8c4d23289["initState()"] a45b86d7_95dc_3c82_51a7_1bc8c4d23289 -->|calls| e09d42c3_b0fe_1115_a309_cb10f1485458 63797968_e46c_d348_9f28_9f4fa66877aa["createWatcher()"] e09d42c3_b0fe_1115_a309_cb10f1485458 -->|calls| 63797968_e46c_d348_9f28_9f4fa66877aa style e09d42c3_b0fe_1115_a309_cb10f1485458 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
Calls
Called By
Source
Frequently Asked Questions
What does initWatch() do?
initWatch() is a function in the vue codebase.
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