deactivateChildComponent() — vue Function Reference
Architecture documentation for the deactivateChildComponent() function in lifecycle.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 043a558f_df1f_5f57_8b30_ee24fc5b407f["deactivateChildComponent()"] f3560440_54c1_5663_36f8_c7de54d7310b["lifecycle.ts"] 043a558f_df1f_5f57_8b30_ee24fc5b407f -->|defined in| f3560440_54c1_5663_36f8_c7de54d7310b 16383a0e_8f50_14ea_3a74_247e72ad3179["componentVNodeHooks.destroy()"] 16383a0e_8f50_14ea_3a74_247e72ad3179 -->|calls| 043a558f_df1f_5f57_8b30_ee24fc5b407f 32eb8dc3_904c_0b93_bb4f_9f30bec2f366["isInInactiveTree()"] 043a558f_df1f_5f57_8b30_ee24fc5b407f -->|calls| 32eb8dc3_904c_0b93_bb4f_9f30bec2f366 f8064a1e_1b6a_274a_f334_111faf594604["callHook()"] 043a558f_df1f_5f57_8b30_ee24fc5b407f -->|calls| f8064a1e_1b6a_274a_f334_111faf594604 style 043a558f_df1f_5f57_8b30_ee24fc5b407f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/core/instance/lifecycle.ts lines 378–392
export function deactivateChildComponent(vm: Component, direct?: boolean) {
if (direct) {
vm._directInactive = true
if (isInInactiveTree(vm)) {
return
}
}
if (!vm._inactive) {
vm._inactive = true
for (let i = 0; i < vm.$children.length; i++) {
deactivateChildComponent(vm.$children[i])
}
callHook(vm, 'deactivated')
}
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does deactivateChildComponent() do?
deactivateChildComponent() is a function in the vue codebase, defined in src/core/instance/lifecycle.ts.
Where is deactivateChildComponent() defined?
deactivateChildComponent() is defined in src/core/instance/lifecycle.ts at line 378.
What does deactivateChildComponent() call?
deactivateChildComponent() calls 2 function(s): callHook, isInInactiveTree.
What calls deactivateChildComponent()?
deactivateChildComponent() is called by 1 function(s): componentVNodeHooks.destroy.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free