Home / Function/ activateChildComponent() — vue Function Reference

activateChildComponent() — vue Function Reference

Architecture documentation for the activateChildComponent() function in lifecycle.ts from the vue codebase.

Function typescript CoreRuntime Instance calls 2 called by 2

Entity Profile

Dependency Diagram

graph TD
  c839785a_cc49_21a8_563d_d8789c68747b["activateChildComponent()"]
  f3560440_54c1_5663_36f8_c7de54d7310b["lifecycle.ts"]
  c839785a_cc49_21a8_563d_d8789c68747b -->|defined in| f3560440_54c1_5663_36f8_c7de54d7310b
  631fda9c_cd56_d5a1_0408_8bc73fc68929["callActivatedHooks()"]
  631fda9c_cd56_d5a1_0408_8bc73fc68929 -->|calls| c839785a_cc49_21a8_563d_d8789c68747b
  4accbb05_fb35_7066_14cf_218d3f576a8a["componentVNodeHooks.insert()"]
  4accbb05_fb35_7066_14cf_218d3f576a8a -->|calls| c839785a_cc49_21a8_563d_d8789c68747b
  32eb8dc3_904c_0b93_bb4f_9f30bec2f366["isInInactiveTree()"]
  c839785a_cc49_21a8_563d_d8789c68747b -->|calls| 32eb8dc3_904c_0b93_bb4f_9f30bec2f366
  f8064a1e_1b6a_274a_f334_111faf594604["callHook()"]
  c839785a_cc49_21a8_563d_d8789c68747b -->|calls| f8064a1e_1b6a_274a_f334_111faf594604
  style c839785a_cc49_21a8_563d_d8789c68747b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/core/instance/lifecycle.ts lines 360–376

export function activateChildComponent(vm: Component, direct?: boolean) {
  if (direct) {
    vm._directInactive = false
    if (isInInactiveTree(vm)) {
      return
    }
  } else if (vm._directInactive) {
    return
  }
  if (vm._inactive || vm._inactive === null) {
    vm._inactive = false
    for (let i = 0; i < vm.$children.length; i++) {
      activateChildComponent(vm.$children[i])
    }
    callHook(vm, 'activated')
  }
}

Domain

Subdomains

Frequently Asked Questions

What does activateChildComponent() do?
activateChildComponent() is a function in the vue codebase, defined in src/core/instance/lifecycle.ts.
Where is activateChildComponent() defined?
activateChildComponent() is defined in src/core/instance/lifecycle.ts at line 360.
What does activateChildComponent() call?
activateChildComponent() calls 2 function(s): callHook, isInInactiveTree.
What calls activateChildComponent()?
activateChildComponent() is called by 2 function(s): callActivatedHooks, componentVNodeHooks.insert.

Analyze Your Own Codebase

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

Try Supermodel Free