diff --git a/libs/horizon/src/renderer/components/BaseClassComponent.ts b/libs/horizon/src/renderer/components/BaseClassComponent.ts index fff07c8d..8a931e04 100644 --- a/libs/horizon/src/renderer/components/BaseClassComponent.ts +++ b/libs/horizon/src/renderer/components/BaseClassComponent.ts @@ -29,7 +29,7 @@ class Component { this.context = context; } - setState(state: S) { + setState(state: S, callback?: any) { if (isDev) { console.error('Cant not call `this.setState` in the constructor of class component, it will do nothing'); }