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

@@ -49,7 +49,8 @@ export default withRouter(class UserSets extends Component {
userSetsRef.get().then((querySnapshot) => {
this.setState({
userSets: querySnapshot.docs,
})
});
this.props.page.load();
});
this.props.logEvent("page_view");
@@ -57,6 +58,7 @@ export default withRouter(class UserSets extends Component {
componentWillUnmount() {
this.isMounted = false;
this.props.page.unload();
}
render() {