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
  f83b642c_4d10_9b5e_4c13_7bff8d222fde["componentVNodeHooks.destroy()"]
  18d51aec_8d26_a819_8f35_582a8499968c["deactivateChildComponent()"]
  f83b642c_4d10_9b5e_4c13_7bff8d222fde -->|calls| 18d51aec_8d26_a819_8f35_582a8499968c
  style f83b642c_4d10_9b5e_4c13_7bff8d222fde 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.
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