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:
parent
f0f1e4805b
commit
092d488a74
|
@ -25,7 +25,9 @@ export class StoreProvider extends Component<SpecProps, SpecState> {
|
||||||
this.state = {
|
this.state = {
|
||||||
loading: true,
|
loading: true,
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
componentDidMount() {
|
||||||
this.load();
|
this.load();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user