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

componentVNodeHooks.init() — vue Function Reference

Architecture documentation for the componentVNodeHooks.init() function in create-component.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  19d8de6a_4f22_e529_d469_2e3e5d07522f["componentVNodeHooks.init()"]
  82e2e746_8f28_fbf0_8cf7_69eca6423e4a["create-component.ts"]
  19d8de6a_4f22_e529_d469_2e3e5d07522f -->|defined in| 82e2e746_8f28_fbf0_8cf7_69eca6423e4a
  f9ac0ed1_c4f5_ca95_98cf_d36201566db1["createComponentInstanceForVnode()"]
  19d8de6a_4f22_e529_d469_2e3e5d07522f -->|calls| f9ac0ed1_c4f5_ca95_98cf_d36201566db1
  style 19d8de6a_4f22_e529_d469_2e3e5d07522f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/core/vdom/create-component.ts lines 37–53

  init(vnode: VNodeWithData, hydrating: boolean): boolean | void {
    if (
      vnode.componentInstance &&
      !vnode.componentInstance._isDestroyed &&
      vnode.data.keepAlive
    ) {
      // kept-alive components, treat as a patch
      const mountedNode: any = vnode // work around flow
      componentVNodeHooks.prepatch(mountedNode, mountedNode)
    } else {
      const child = (vnode.componentInstance = createComponentInstanceForVnode(
        vnode,
        activeInstance
      ))
      child.$mount(hydrating ? vnode.elm : undefined, hydrating)
    }
  },

Domain

Subdomains

Frequently Asked Questions

What does componentVNodeHooks.init() do?
componentVNodeHooks.init() is a function in the vue codebase, defined in src/core/vdom/create-component.ts.
Where is componentVNodeHooks.init() defined?
componentVNodeHooks.init() is defined in src/core/vdom/create-component.ts at line 37.
What does componentVNodeHooks.init() call?
componentVNodeHooks.init() calls 1 function(s): createComponentInstanceForVnode.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free