Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

perf: minor adjustments

thecodrr7de6caccfd7f
diff --git a/apps/web/src/app.js b/apps/web/src/app.js
index 7773f5999..d8b864e28 100644
--- a/apps/web/src/app.js
+++ b/apps/web/src/app.js
@@ -15,10 +15,8 @@ import { Suspense } from "react";
import useMobile from "./utils/use-mobile";
import useTablet from "./utils/use-tablet";
import HashRouter from "./components/hashrouter";
+import ThemeTransition from "./components/themeprovider/themetransition";
-const ThemeTransition = React.lazy(() =>
- import("./components/themeprovider/themetransition")
-);
const AppEffects = React.lazy(() => import("./app-effects"));
const CachedRouter = React.lazy(() => import("./components/cached-router"));
@@ -92,15 +90,12 @@ function App() {
flexDirection="column"
>
<HashRouter />
- {/* <EditorSwitch /> */}
</Flex>
</Flex>
<GlobalMenuWrapper />
</Flex>
<StatusBar />
- <Suspense fallback={<div />}>
- <ThemeTransition />
- </Suspense>
+ <ThemeTransition />
</Flex>
</ThemeProvider>
</MotionConfig>