From 3c1a4bc02af4c78b409ba150a5ddb0751496f928 Mon Sep 17 00:00:00 2001 From: * <8> Date: Thu, 17 Feb 2022 11:58:28 +0800 Subject: [PATCH] Match-id-75b8c073cf610e8c3a74d1178c172caf13196702 --- libs/horizon/src/renderer/vnode/VNode.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/horizon/src/renderer/vnode/VNode.ts b/libs/horizon/src/renderer/vnode/VNode.ts index 8ce6d94b..66ee567f 100644 --- a/libs/horizon/src/renderer/vnode/VNode.ts +++ b/libs/horizon/src/renderer/vnode/VNode.ts @@ -65,7 +65,7 @@ export class VNode { clearChild: VNode | null = null; // one tree相关属性 isCreated: boolean = true; - oldHooks: Array> | null = []; // 保存上一次执行的hook + oldHooks: Array> | null = null; // 保存上一次执行的hook oldState: any = null; oldRef: RefType | ((handle: any) => void) | null = null; suspenseChildThrow = false;