Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/runtime-core/src/apiLifecycle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export function injectHook(
}
}

const createHook =
export const createHook =
<T extends Function = () => any>(lifecycle: LifecycleHooks) =>
(
hook: T,
Expand Down
8 changes: 7 additions & 1 deletion packages/runtime-core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export {
watchSyncEffect,
} from './apiWatch'
export {
createHook,
onBeforeMount,
onMounted,
onBeforeUpdate,
Expand Down Expand Up @@ -103,7 +104,12 @@ export {

// For getting a hold of the internal instance in setup() - useful for advanced
// plugins
export { getCurrentInstance } from './component'
export {
currentInstance,
getCurrentInstance,
setCurrentInstance,
unsetCurrentInstance,
} from './component'

// For raw render function users
export { h } from './h'
Expand Down