Match-id-8c8edc92392dcae4fa155fe80ecae735f6f4d0fc
This commit is contained in:
parent
32310f97ed
commit
4712e8a621
|
@ -29,7 +29,7 @@ class Component<P, S, C> {
|
|||
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');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue