File tree Expand file tree Collapse file tree 3 files changed +414
-401
lines changed Expand file tree Collapse file tree 3 files changed +414
-401
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ export {
103103
104104// For getting a hold of the internal instance in setup() - useful for advanced
105105// plugins
106- export { getCurrentInstance } from './component'
106+ export { getCurrentInstance , getCurrentGenericInstance } from './component'
107107
108108// For raw render function users
109109export { h } from './h'
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ import {
2727 type VNodeProps ,
2828 createVNode ,
2929 defineComponent ,
30- getCurrentInstance ,
30+ getCurrentGenericInstance ,
3131 nextTick ,
3232 unref ,
3333 warn ,
@@ -793,7 +793,7 @@ export class VueElement extends VueElementBase<
793793}
794794
795795export function useHost ( caller ?: string ) : VueElementBase | null {
796- const instance = getCurrentInstance ( )
796+ const instance = getCurrentGenericInstance ( )
797797 const el = instance && ( instance . ce as VueElementBase )
798798 if ( el ) {
799799 return el
You can’t perform that action at this time.
0 commit comments