We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b38d62f commit 209e9d3Copy full SHA for 209e9d3
apps/studio-next/src/components/StudioEditor.tsx
@@ -2,7 +2,14 @@
2
import dynamic from 'next/dynamic'
3
const StudioWrapper = dynamic(() => import('@/components/StudioWrapper'), {ssr: false})
4
5
+/*
6
+Calling next/dynamic with client component in server component is so far not able to do code splitting.
7
+So we move them to a here as client component and call next/dynamic here to enable code splitting.
8
9
+Using next/dynamic in server components will also be including in server side rendering
10
+which will contribute to cold start and huge bundle size.
11
+https://github.com/vercel/next.js/issues/49454#issuecomment-1830053413
12
+*/
13
export default async function StudioEditor() {
14
return (
15
<StudioWrapper />
0 commit comments