diff --git a/app/components/home.tsx b/app/components/home.tsx
index c15b995e4..4e334805a 100644
--- a/app/components/home.tsx
+++ b/app/components/home.tsx
@@ -23,7 +23,6 @@ import {
} from "react-router-dom";
import { SideBar } from "./sidebar";
import { useAppConfig } from "../store/config";
-import { NewChat } from "./new-chat";
export function Loading(props: { noLogo?: boolean }) {
return (
@@ -42,6 +41,10 @@ const Chat = dynamic(async () => (await import("./chat")).Chat, {
loading: () => ,
});
+const NewChat = dynamic(async () => (await import("./new-chat")).NewChat, {
+ loading: () => ,
+});
+
export function useSwitchTheme() {
const config = useAppConfig();