Home / Function/ setActiveInstance() — vue Function Reference

setActiveInstance() — vue Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  087a2dd7_629a_229e_decb_eb877cce9395["setActiveInstance()"]
  d937f76e_061f_a631_9587_336503c9a15c["lifecycle.ts"]
  087a2dd7_629a_229e_decb_eb877cce9395 -->|defined in| d937f76e_061f_a631_9587_336503c9a15c
  5ebc50a8_91d4_fca0_61db_b1eb7c6dc6ca["lifecycleMixin()"]
  5ebc50a8_91d4_fca0_61db_b1eb7c6dc6ca -->|calls| 087a2dd7_629a_229e_decb_eb877cce9395
  style 087a2dd7_629a_229e_decb_eb877cce9395 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/core/instance/lifecycle.ts lines 27–33

export function setActiveInstance(vm: Component) {
  const prevActiveInstance = activeInstance
  activeInstance = vm
  return () => {
    activeInstance = prevActiveInstance
  }
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does setActiveInstance() do?
setActiveInstance() is a function in the vue codebase, defined in src/core/instance/lifecycle.ts.
Where is setActiveInstance() defined?
setActiveInstance() is defined in src/core/instance/lifecycle.ts at line 27.
What calls setActiveInstance()?
setActiveInstance() is called by 1 function(s): lifecycleMixin.

Analyze Your Own Codebase

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

Try Supermodel Free