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
  19787e7b_3f94_47ad_9431_ec3405d28883["componentVNodeHooks.init()"]
  a6875054_df8a_0ce4_8a16_374ce422dc53["create-component.ts"]
  19787e7b_3f94_47ad_9431_ec3405d28883 -->|defined in| a6875054_df8a_0ce4_8a16_374ce422dc53
  3146b73e_f08e_cdcd_7d95_38e388619c9d["createComponentInstanceForVnode()"]
  19787e7b_3f94_47ad_9431_ec3405d28883 -->|calls| 3146b73e_f08e_cdcd_7d95_38e388619c9d
  style 19787e7b_3f94_47ad_9431_ec3405d28883 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