initWatch() — vue Function Reference
Architecture documentation for the initWatch() function in state.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD c179f128_4f00_181f_2fb6_82df876bd8eb["initWatch()"] 7d6ab8ef_bd4c_49b2_1b21_a805de50af72["initState()"] 7d6ab8ef_bd4c_49b2_1b21_a805de50af72 -->|calls| c179f128_4f00_181f_2fb6_82df876bd8eb ba63994a_f426_3629_e039_acc8d1bcb187["createWatcher()"] c179f128_4f00_181f_2fb6_82df876bd8eb -->|calls| ba63994a_f426_3629_e039_acc8d1bcb187 style c179f128_4f00_181f_2fb6_82df876bd8eb 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