Skip to content

Commit

Permalink
Revert #d0ccb387a8073c4205264e0a41f59189885f30c1 changed state back t…
Browse files Browse the repository at this point in the history
…o readonly
  • Loading branch information
Sampo Kivistö committed Aug 18, 2022
1 parent ded256a commit 6385282
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/inferno/src/core/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export type ComponentType<P = {}> = Component<P> | Inferno.StatelessComponent<P>

export class Component<P = {}, S = {}> implements IComponent<P, S> {
// Public
public state: S | null = null;
public state: Readonly<S | null> = null;
public props: Readonly<{ children?: Inferno.InfernoNode | undefined }> & Readonly<P>;
public context: any;
public displayName?: string;
Expand Down

0 comments on commit 6385282

Please sign in to comment.