From 3138f4b42f7653b48d8b7d0ed2656a335d81787f Mon Sep 17 00:00:00 2001 From: Guillaume Chau Date: Sat, 22 Aug 2020 15:53:21 +0200 Subject: [PATCH] chore: rename createDevtoolsHook to createDevtoolsComponentHook --- packages/runtime-core/src/devtools.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/runtime-core/src/devtools.ts b/packages/runtime-core/src/devtools.ts index 876c67b0..a83048f4 100644 --- a/packages/runtime-core/src/devtools.ts +++ b/packages/runtime-core/src/devtools.ts @@ -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(