Home / Function/ componentVNodeHooks.destroy() — vue Function Reference

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
  edfb4423_e01b_24f6_7169_819276336b79["componentVNodeHooks.destroy()"]
  82e2e746_8f28_fbf0_8cf7_69eca6423e4a["create-component.ts"]
  edfb4423_e01b_24f6_7169_819276336b79 -->|defined in| 82e2e746_8f28_fbf0_8cf7_69eca6423e4a
  8d2d9489_7b69_4b25_92ee_497afbc2fc3b["deactivateChildComponent()"]
  edfb4423_e01b_24f6_7169_819276336b79 -->|calls| 8d2d9489_7b69_4b25_92ee_497afbc2fc3b
  style edfb4423_e01b_24f6_7169_819276336b79 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

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