setCurrentInstance() — vue Function Reference
Architecture documentation for the setCurrentInstance() function in currentInstance.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD d1e6589c_ca32_48f9_4b75_7ccf5ae438ec["setCurrentInstance()"] 08d717e5_b9dd_701c_e7a2_51d83681d28a["currentInstance.ts"] d1e6589c_ca32_48f9_4b75_7ccf5ae438ec -->|defined in| 08d717e5_b9dd_701c_e7a2_51d83681d28a 68e41397_5a92_5b2b_c03f_8a2d186bd3a6["initSetup()"] 68e41397_5a92_5b2b_c03f_8a2d186bd3a6 -->|calls| d1e6589c_ca32_48f9_4b75_7ccf5ae438ec style d1e6589c_ca32_48f9_4b75_7ccf5ae438ec fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/v3/currentInstance.ts lines 19–23
export function setCurrentInstance(vm: Component | null = null) {
if (!vm) currentInstance && currentInstance._scope.off()
currentInstance = vm
vm && vm._scope.on()
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does setCurrentInstance() do?
setCurrentInstance() is a function in the vue codebase, defined in src/v3/currentInstance.ts.
Where is setCurrentInstance() defined?
setCurrentInstance() is defined in src/v3/currentInstance.ts at line 19.
What calls setCurrentInstance()?
setCurrentInstance() is called by 1 function(s): initSetup.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free