callHook() — vue Function Reference
Architecture documentation for the callHook() function in directives.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 7fd87ce8_4e1d_b663_7a3b_59efd7c1e6dc["callHook()"] b91b554e_74a2_233a_0bd9_3f9cf7cb3052["_update()"] b91b554e_74a2_233a_0bd9_3f9cf7cb3052 -->|calls| 7fd87ce8_4e1d_b663_7a3b_59efd7c1e6dc style 7fd87ce8_4e1d_b663_7a3b_59efd7c1e6dc fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/core/vdom/modules/directives.ts lines 128–137
function callHook(dir, hook, vnode, oldVnode, isDestroy?: any) {
const fn = dir.def && dir.def[hook]
if (fn) {
try {
fn(vnode.elm, dir, vnode, oldVnode, isDestroy)
} catch (e: any) {
handleError(e, vnode.context, `directive ${dir.name} ${hook} hook`)
}
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does callHook() do?
callHook() is a function in the vue codebase.
What calls callHook()?
callHook() is called by 1 function(s): _update.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free