From 6385282186c4118ba1ff8c16641aee3bbbeb3fe5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sampo=20Kivist=C3=B6?= Date: Thu, 18 Aug 2022 19:11:27 +0300 Subject: [PATCH] Revert #d0ccb387a8073c4205264e0a41f59189885f30c1 changed state back to readonly --- packages/inferno/src/core/component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/inferno/src/core/component.ts b/packages/inferno/src/core/component.ts index 796dcc488..3eacfd9b7 100644 --- a/packages/inferno/src/core/component.ts +++ b/packages/inferno/src/core/component.ts @@ -125,7 +125,7 @@ export type ComponentType

= Component

| Inferno.StatelessComponent

export class Component

implements IComponent { // Public - public state: S | null = null; + public state: Readonly = null; public props: Readonly<{ children?: Inferno.InfernoNode | undefined }> & Readonly

; public context: any; public displayName?: string;