Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

fixed app crash issue

Blue Mouse6fbc35a1df57
diff --git a/src/App.js b/src/App.js
index 4b152e46a..3d4b603ba 100644
--- a/src/App.js
+++ b/src/App.js
@@ -109,10 +109,10 @@ const App = () => {
return (
(!accessToken || !loading) && (
<>
- <Header authenticated={authenticated} theme={theme} />
- <ScrollToTop>
- <Selfhosted>
- <Suspense fallback={<Fallback theme={theme} isMinimalFooter={isMinimalFooter} />}>
+ <Suspense fallback={<Fallback theme={theme} isMinimalFooter={isMinimalFooter} />}>
+ <Header authenticated={authenticated} theme={theme} />
+ <ScrollToTop>
+ <Selfhosted>
<Switch>
<Route path={routes.main} component={MainPage} exact />
<Route path={routes.signin} component={SignIn} exact />
@@ -134,10 +134,10 @@ const App = () => {
<Route path={routes.terms} component={Terms} exact />
<Redirect to={routes.main} />
</Switch>
- </Suspense>
- </Selfhosted>
- </ScrollToTop>
- <Footer minimal={isMinimalFooter} authenticated={authenticated} />
+ </Selfhosted>
+ </ScrollToTop>
+ <Footer minimal={isMinimalFooter} authenticated={authenticated} />
+ </Suspense>
</>
)
)