chore: rename createDevtoolsHook to createDevtoolsComponentHook

This commit is contained in:
Guillaume Chau 2020-08-22 15:53:21 +02:00
parent 54d06ec495
commit 3138f4b42f

View File

@ -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(