diff --git a/src/app.jsx b/src/app.jsx
index e34c95e4..8e455185 100644
--- a/src/app.jsx
+++ b/src/app.jsx
@@ -442,40 +442,36 @@ function App() {
return ;
}
+ if (uiState === 'loading') {
+ return ;
+ }
+
return (
<>
-
+
- {uiState === 'default' && (
-
- } />
-
- )}
+
+ } />
+
{isLoggedIn && }
{isLoggedIn && }
{isLoggedIn && }
- {uiState !== 'loading' && }
+
>
);
}
-function Root({ isLoggedIn, loading }) {
+function Root({ isLoggedIn }) {
if (isLoggedIn) {
__BENCHMARK.end('time-to-isLoggedIn');
}
- return isLoggedIn ? (
-
- ) : loading ? (
-
- ) : (
-
- );
+ return isLoggedIn ? : ;
}
-const PrimaryRoutes = memo(({ isLoggedIn, loading }) => {
+const PrimaryRoutes = memo(({ isLoggedIn }) => {
const location = useLocation();
const nonRootLocation = useMemo(() => {
const { pathname } = location;
@@ -484,10 +480,7 @@ const PrimaryRoutes = memo(({ isLoggedIn, loading }) => {
return (
- }
- />
+ } />
} />
} />