Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MMmaXingXing/mini-vue
/ getCurrentInstance
Function
getCurrentInstance
code/src/runtime-core/component.ts:77–79 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
75
76
let
currentInstance = null;
77
export
const
getCurrentInstance = () => {
78
return
currentInstance;
79
};
80
81
export
const
setCurrentInstance = (instance) => {
82
currentInstance = instance;
Callers
2
provide
Function · 0.90
inject
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected