We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53de0f7 commit e6dfdd3Copy full SHA for e6dfdd3
beta/src/components/MDX/Sandpack/index.tsx
@@ -3,10 +3,9 @@
3
*/
4
5
import * as React from 'react';
6
-import dynamic from 'next/dynamic';
7
import {createFileMap} from './createFileMap';
8
9
-const SandpackRoot = dynamic(() => import('./SandpackRoot'), {suspense: true});
+const SandpackRoot = React.lazy(() => import('./SandpackRoot'));
10
11
const SandpackGlimmer = ({code}: {code: string}) => (
12
<div className="sandpack-container my-8">
0 commit comments