setCurrentInstance() — vue Function Reference
Architecture documentation for the setCurrentInstance() function in currentInstance.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD d455acb0_4874_02b0_4271_588c2e7f6b9b["setCurrentInstance()"] 9f3b1774_ebd5_0845_1a85_868e0c1fd480["currentInstance.ts"] d455acb0_4874_02b0_4271_588c2e7f6b9b -->|defined in| 9f3b1774_ebd5_0845_1a85_868e0c1fd480 febe102d_0cde_5025_1bb0_883314aa12fa["initSetup()"] febe102d_0cde_5025_1bb0_883314aa12fa -->|calls| d455acb0_4874_02b0_4271_588c2e7f6b9b style d455acb0_4874_02b0_4271_588c2e7f6b9b 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