1
1
mirror of https://github.com/Redocly/redoc.git synced 2025-03-02 09:00:33 +03:00

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 = { this.state = {
loading: true, loading: true,
}; };
}
componentDidMount() {
this.load(); this.load();
} }