's'
This commit is contained in:
17
app/HomeClientLoader.tsx
Normal file
17
app/HomeClientLoader.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
"use client";
|
||||
|
||||
import dynamic from "next/dynamic";
|
||||
import { HomeBootOverlay } from "@/app/components/HomeBootOverlay";
|
||||
|
||||
const HomeClient = dynamic(() => import("./HomeClient"), {
|
||||
ssr: false,
|
||||
loading: () => (
|
||||
<div className="min-h-screen bg-[var(--background)]">
|
||||
<HomeBootOverlay visible subtitle="加载中…" />
|
||||
</div>
|
||||
),
|
||||
});
|
||||
|
||||
export function HomeClientLoader() {
|
||||
return <HomeClient />;
|
||||
}
|
||||
Reference in New Issue
Block a user