MCPcopy 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
76let currentInstance = null;
77export const getCurrentInstance = () => {
78 return currentInstance;
79};
80
81export const setCurrentInstance = (instance) => {
82 currentInstance = instance;

Callers 2

provideFunction · 0.90
injectFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected