We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf93845 commit c423a43Copy full SHA for c423a43
packages/runtime-dom/src/apiCustomElement.ts
@@ -26,8 +26,8 @@ import {
26
type VNode,
27
type VNodeProps,
28
createVNode,
29
+ currentInstance,
30
defineComponent,
- getCurrentInstance,
31
nextTick,
32
unref,
33
warn,
@@ -793,7 +793,7 @@ export class VueElement extends VueElementBase<
793
}
794
795
export function useHost(caller?: string): VueElementBase | null {
796
- const instance = getCurrentInstance()
+ const instance = currentInstance
797
const el = instance && (instance.ce as VueElementBase)
798
if (el) {
799
return el
0 commit comments