Skip to content

Commit cca384c

Browse files
Fix collaboration page Suspense boundary
1 parent de3ca8d commit cca384c

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

  • apps/web/src/app/editor/collaboration

apps/web/src/app/editor/collaboration/page.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { Suspense } from "react";
12
import CollaborationPanel from "@/components/editor/CollaborationPanel";
23
import ToolPageShell from "@/components/editor/ToolPageShell";
34

@@ -7,7 +8,15 @@ export default function CollaborationPage() {
78
description="Create shareable collaboration rooms, invite teammates, exchange room messages, and push or pull workspace snapshots during live teamwork."
89
title="Collaboration rooms"
910
>
10-
<CollaborationPanel />
11+
<Suspense
12+
fallback={
13+
<div className="rounded-[28px] border border-white/10 bg-white/5 p-5 text-sm text-slate-300">
14+
Loading collaboration room...
15+
</div>
16+
}
17+
>
18+
<CollaborationPanel />
19+
</Suspense>
1120
</ToolPageShell>
1221
);
1322
}

0 commit comments

Comments
 (0)