Add loader until page loads completely

This commit is contained in:
2021-10-03 15:59:24 +01:00
parent 90a31e8923
commit 80e7c24811
18 changed files with 280 additions and 147 deletions

View File

@@ -98,11 +98,13 @@ export default withRouter(class SetPage extends React.Component {
},
currentSetGroups: setDoc.data().groups,
});
this.props.page.load();
});
}).catch((error) => {
this.setState({
setInaccessible: true,
});
this.props.page.load();
console.log(`Can't access set: ${error}`);
});
@@ -114,6 +116,7 @@ export default withRouter(class SetPage extends React.Component {
componentWillUnmount() {
this.isMounted = false;
this.props.page.unload();
}
stopLoading = () => {