componentVNodeHooks.destroy() — vue Function Reference
Architecture documentation for the componentVNodeHooks.destroy() function in create-component.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 16383a0e_8f50_14ea_3a74_247e72ad3179["componentVNodeHooks.destroy()"] a6875054_df8a_0ce4_8a16_374ce422dc53["create-component.ts"] 16383a0e_8f50_14ea_3a74_247e72ad3179 -->|defined in| a6875054_df8a_0ce4_8a16_374ce422dc53 043a558f_df1f_5f57_8b30_ee24fc5b407f["deactivateChildComponent()"] 16383a0e_8f50_14ea_3a74_247e72ad3179 -->|calls| 043a558f_df1f_5f57_8b30_ee24fc5b407f style 16383a0e_8f50_14ea_3a74_247e72ad3179 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/core/vdom/create-component.ts lines 87–96
destroy(vnode: MountedComponentVNode) {
const { componentInstance } = vnode
if (!componentInstance._isDestroyed) {
if (!vnode.data.keepAlive) {
componentInstance.$destroy()
} else {
deactivateChildComponent(componentInstance, true /* direct */)
}
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does componentVNodeHooks.destroy() do?
componentVNodeHooks.destroy() is a function in the vue codebase, defined in src/core/vdom/create-component.ts.
Where is componentVNodeHooks.destroy() defined?
componentVNodeHooks.destroy() is defined in src/core/vdom/create-component.ts at line 87.
What does componentVNodeHooks.destroy() call?
componentVNodeHooks.destroy() calls 1 function(s): deactivateChildComponent.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free