Skip to content

Commit

Permalink
chore: rename createDevtoolsHook to createDevtoolsComponentHook
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Aug 22, 2020
1 parent 54d06ec commit 3138f4b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/runtime-core/src/devtools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,19 @@ export function devtoolsUnmountApp(app: App) {
devtools.emit(DevtoolsHooks.APP_UNMOUNT, app)
}

export const devtoolsComponentAdded = /*#__PURE__*/ createDevtoolsHook(
export const devtoolsComponentAdded = /*#__PURE__*/ createDevtoolsComponentHook(
DevtoolsHooks.COMPONENT_ADDED
)

export const devtoolsComponentUpdated = /*#__PURE__*/ createDevtoolsHook(
export const devtoolsComponentUpdated = /*#__PURE__*/ createDevtoolsComponentHook(
DevtoolsHooks.COMPONENT_UPDATED
)

export const devtoolsComponentRemoved = /*#__PURE__*/ createDevtoolsHook(
export const devtoolsComponentRemoved = /*#__PURE__*/ createDevtoolsComponentHook(
DevtoolsHooks.COMPONENT_REMOVED
)

function createDevtoolsHook(hook: DevtoolsHooks) {
function createDevtoolsComponentHook(hook: DevtoolsHooks) {
return (component: ComponentInternalInstance) => {
if (!devtools) return
devtools.emit(
Expand Down

0 comments on commit 3138f4b

Please sign in to comment.