createWatcher() — vue Function Reference
Architecture documentation for the createWatcher() function in state.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 63797968_e46c_d348_9f28_9f4fa66877aa["createWatcher()"] e09d42c3_b0fe_1115_a309_cb10f1485458["initWatch()"] e09d42c3_b0fe_1115_a309_cb10f1485458 -->|calls| 63797968_e46c_d348_9f28_9f4fa66877aa dfb98f6e_f77e_f8b1_4779_1235de201c9b["stateMixin()"] dfb98f6e_f77e_f8b1_4779_1235de201c9b -->|calls| 63797968_e46c_d348_9f28_9f4fa66877aa style 63797968_e46c_d348_9f28_9f4fa66877aa fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/core/instance/state.ts lines 325–339
function createWatcher(
vm: Component,
expOrFn: string | (() => any),
handler: any,
options?: Object
) {
if (isPlainObject(handler)) {
options = handler
handler = handler.handler
}
if (typeof handler === 'string') {
handler = vm[handler]
}
return vm.$watch(expOrFn, handler, options)
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does createWatcher() do?
createWatcher() is a function in the vue codebase.
What calls createWatcher()?
createWatcher() is called by 2 function(s): initWatch, stateMixin.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free