From b27cb830dc09b3b6d46fe2f047aeb0d52a967ad5 Mon Sep 17 00:00:00 2001 From: * <8> Date: Thu, 17 Feb 2022 11:28:20 +0800 Subject: [PATCH] Match-id-b1728f3e2e13d0dceaec7d800af945630574e9f8 --- 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 bf4aca7e..25b12511 100644 --- a/libs/horizon/src/renderer/vnode/VNode.ts +++ b/libs/horizon/src/renderer/vnode/VNode.ts @@ -31,7 +31,7 @@ export class VNode { isForceUpdate: boolean = false; // 是否使用强制更新 state: any = null; // ClassComponent和TreeRoot的状态 - hooks: Array> | null = []; // 保存hook + hooks: Array> | null = null; // 保存hook suspenseChildStatus: string = ''; // Suspense的Children是否显示 depContexts: Array> | null = []; // FunctionComponent和ClassComponent对context的依赖列表 isDepContextChange: boolean = false; // context是否变更