Match-id-fe440727969028d1d8e23d0315b8867e6ee4b5b7

This commit is contained in:
* 2022-09-05 10:53:35 +08:00 committed by *
parent ee703a78a9
commit 46450cf4f8
1 changed files with 3 additions and 1 deletions

View File

@ -39,7 +39,9 @@ export const helper = {
return { name: HookName.RefHook, hIndex, value: (state as Ref<any>).current };
} else if (isEffectHook(state)) {
const name =
state.effectConstant == EffectConstant.LayoutEffect ? HookName.LayoutEffectHook : HookName.EffectHook;
state.effectConstant == EffectConstant.LayoutEffect || EffectConstant.LayoutEffect | EffectConstant.DepsChange
? HookName.LayoutEffectHook
: HookName.EffectHook;
return { name, hIndex, value: (state as Effect).effect };
} else if (isCallbackHook(state)) {
return { name: HookName.CallbackHook, hIndex, value: (state as CallBack<any>).func };