Fix setState run before mount

This commit is contained in:
Roman Hotsiy 2017-11-20 01:00:43 +02:00
parent f0f1e4805b
commit 092d488a74
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0

View File

@ -25,7 +25,9 @@ export class StoreProvider extends Component<SpecProps, SpecState> {
this.state = {
loading: true,
};
}
componentDidMount() {
this.load();
}