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;