Skip to content

Commit e6dfdd3

Browse files
authored
[Beta] Drop next/dynamic usage (#4695)
1 parent 53de0f7 commit e6dfdd3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

beta/src/components/MDX/Sandpack/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
*/
44

55
import * as React from 'react';
6-
import dynamic from 'next/dynamic';
76
import {createFileMap} from './createFileMap';
87

9-
const SandpackRoot = dynamic(() => import('./SandpackRoot'), {suspense: true});
8+
const SandpackRoot = React.lazy(() => import('./SandpackRoot'));
109

1110
const SandpackGlimmer = ({code}: {code: string}) => (
1211
<div className="sandpack-container my-8">

0 commit comments

Comments
 (0)