We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 301cbbf commit f920b20Copy full SHA for f920b20
app/components/home.tsx
@@ -19,7 +19,6 @@ import CloseIcon from "../icons/close.svg";
19
import { useChatStore } from "../store";
20
import { isMobileScreen } from "../utils";
21
import Locale from "../locales";
22
-import { ChatList } from "./chat-list";
23
import { Chat } from "./chat";
24
25
import dynamic from "next/dynamic";
@@ -39,6 +38,10 @@ const Settings = dynamic(async () => (await import("./settings")).Settings, {
39
38
loading: () => <Loading noLogo />,
40
});
41
+const ChatList = dynamic(async () => (await import("./chat-list")).ChatList, {
42
+ loading: () => <Loading noLogo />,
43
+});
44
+
45
function useSwitchTheme() {
46
const config = useChatStore((state) => state.config);
47
0 commit comments