From 0110fac93153b7f053448289c61392fc287e6093 Mon Sep 17 00:00:00 2001 From: * <8> Date: Mon, 18 Jul 2022 11:03:34 +0800 Subject: [PATCH] Match-id-c6815e1f47eca5f588e4a488e40e54d34e800585 --- libs/horizon/src/external/devtools.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/horizon/src/external/devtools.ts b/libs/horizon/src/external/devtools.ts index 5e939960..b5aea7e6 100644 --- a/libs/horizon/src/external/devtools.ts +++ b/libs/horizon/src/external/devtools.ts @@ -16,7 +16,7 @@ import { JSXElement } from '../renderer/Types'; const isEffectHook = (state: any): state is Effect => !!state.effect; const isRefHook = (state: any): state is Ref => Object.prototype.hasOwnProperty.call(state, 'current'); const isCallbackHook = (state: any): state is CallBack => state.func !== undefined; -const isMemokHook = (state: any): state is Memo => Object.prototype.hasOwnProperty.call(state, 'result'); +const isMemoHook = (state: any): state is Memo => Object.prototype.hasOwnProperty.call(state, 'result'); export const helper = { travelVNodeTree: (rootVNode, fun, childFilter: ((node: VNode) => boolean) | null = null) => { @@ -38,7 +38,7 @@ export const helper = { return { name, hIndex, value: (state as Effect).effect }; } else if (isCallbackHook(state)) { return { name:'Callback', hIndex, value: (state as CallBack).func }; - } else if (isMemokHook(state)) { + } else if (isMemoHook(state)) { return { name:'Memo', hIndex, value: (state as Memo).result }; } return null;