MCPcopy
hub / github.com/vuejs/core / getCurrentInstance

Function getCurrentInstance

packages/runtime-core/src/component.ts:720–721  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

718export let currentInstance: ComponentInternalInstance | null = null
719
720export const getCurrentInstance: () => ComponentInternalInstance | null = () =>
721 currentInstance || currentRenderingInstance
722
723let internalSetCurrentInstance: (
724 instance: ComponentInternalInstance | null,

Callers 15

useHostFunction · 0.90
withKeysFunction · 0.90
setupFunction · 0.90
useCssVarsFunction · 0.90
useCssModuleFunction · 0.90
injectFunction · 0.90
hasInjectionContextFunction · 0.90
getContextFunction · 0.90
withAsyncContextFunction · 0.90
cleanupFunction · 0.90
computedFunction · 0.90
setupFunction · 0.90

Calls

no outgoing calls

Tested by 13

testRenderFunction · 0.68
setupFunction · 0.68
setupFunction · 0.68
setupFunction · 0.68
setupFunction · 0.68
doAsyncWorkFunction · 0.68
mountedFunction · 0.68
renderFunction · 0.68
ChildFunction · 0.68
mountedFunction · 0.68
setupFunction · 0.68
setupFunction · 0.68