From f0ffc90fcf9ca39ee9950fa477f32a6da6e935a0 Mon Sep 17 00:00:00 2001 From: * <8> Date: Sat, 19 Feb 2022 14:13:30 +0800 Subject: [PATCH] Match-id-c7b7cf761030b63184686c2e8a649010f222235e --- .../src/renderer/components/BaseClassComponent.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libs/horizon/src/renderer/components/BaseClassComponent.ts b/libs/horizon/src/renderer/components/BaseClassComponent.ts index ec141650..a5559bbd 100644 --- a/libs/horizon/src/renderer/components/BaseClassComponent.ts +++ b/libs/horizon/src/renderer/components/BaseClassComponent.ts @@ -4,11 +4,18 @@ class Component
{ props: P; context: C; - state: S; + state: S | null; + refs: any; + setState: any; + forceUpdate: any; constructor(props: P, context: C) { this.props = props; this.context = context; + this.state = null; + this.refs = null; + this.setState = null; + this.forceUpdate = null; } }