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 VueCore Instance calls 2 called by 2

Entity Profile

Dependency Diagram

graph TD
  428cbd6d_51c5_fed9_65af_f319e424b217["activateChildComponent()"]
  d937f76e_061f_a631_9587_336503c9a15c["lifecycle.ts"]
  428cbd6d_51c5_fed9_65af_f319e424b217 -->|defined in| d937f76e_061f_a631_9587_336503c9a15c
  6eea97d8_4fdd_6b45_e5f4_358cc1756362["callActivatedHooks()"]
  6eea97d8_4fdd_6b45_e5f4_358cc1756362 -->|calls| 428cbd6d_51c5_fed9_65af_f319e424b217
  598b2801_d8c2_3e04_0530_7ded414e83de["componentVNodeHooks.insert()"]
  598b2801_d8c2_3e04_0530_7ded414e83de -->|calls| 428cbd6d_51c5_fed9_65af_f319e424b217
  c607d947_ade7_b69c_10cc_97201866a555["isInInactiveTree()"]
  428cbd6d_51c5_fed9_65af_f319e424b217 -->|calls| c607d947_ade7_b69c_10cc_97201866a555
  77ac8989_609a_4755_79eb_0403c1cc7788["callHook()"]
  428cbd6d_51c5_fed9_65af_f319e424b217 -->|calls| 77ac8989_609a_4755_79eb_0403c1cc7788
  style 428cbd6d_51c5_fed9_65af_f319e424b217 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