Skip to content

Commit 6019f67

Browse files
author
Guillaume Chau
committed
feat: expose getCurrentInstance like in Vue 3
1 parent b9d8a4d commit 6019f67

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ export default plugin;
2424
export { default as createElement } from './createElement';
2525
export { SetupContext };
2626
export { createComponent, ComponentRenderProxy, PropType, PropOptions } from './component';
27+
// For getting a gold of the interal instance in setup() - useful for advanced
28+
// plugins
29+
export { getCurrentVM as getCurrentInstance } from './runtimeContext';
2730

2831
export * from './apis/state';
2932
export * from './apis/lifecycle';

0 commit comments

Comments
 (0)