MCPcopy
hub / github.com/vuejs/composition-api / getCurrentInstance

Function getCurrentInstance

src/runtimeContext.ts:232–234  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

230}
231
232export function getCurrentInstance() {
233 return currentInstance
234}
235
236const instanceMapCache = new WeakMap<
237 ComponentInstance,

Callers 15

setupFunction · 0.90
setupFunction · 0.90
setupFunction · 0.90
setupFunction · 0.90
setupFunction · 0.90
setupFunction · 0.90
getCurrentInstanceForFnFunction · 0.90
activateCurrentInstanceFunction · 0.90
createElementFunction · 0.90
recordEffectScopeFunction · 0.90
getCurrentScopeVMFunction · 0.90
getContextFunction · 0.90

Calls

no outgoing calls

Tested by 6

setupFunction · 0.72
setupFunction · 0.72
setupFunction · 0.72
setupFunction · 0.72
setupFunction · 0.72
setupFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…