File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change 1
1
import dynamic from "next/dynamic" ;
2
2
3
- export const MonacoEditor = dynamic (
3
+ const MonacoEditor = dynamic (
4
4
( ) => import ( "@/components/collab/monaco-editor" ) ,
5
5
{
6
6
ssr : false ,
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ export default function MonacoEdit({ roomId }: { roomId: string }) {
12
12
const [ editor , setEditor ] =
13
13
useState < MonacoEditor . IStandaloneCodeEditor | null > ( null ) ;
14
14
const [ provider , setProvider ] = useState < WebsocketProvider | null > ( null ) ;
15
- const [ binding , setBinding ] = useState < MonacoBinding | null > ( null ) ;
16
15
17
16
// this effect manages the lifetime of the Yjs document and the provider
18
17
useEffect ( ( ) => {
@@ -41,7 +40,6 @@ export default function MonacoEdit({ roomId }: { roomId: string }) {
41
40
new Set ( [ editor ] ) ,
42
41
provider ?. awareness
43
42
) ;
44
- setBinding ( monacoBinding ) ;
45
43
return ( ) => {
46
44
monacoBinding . destroy ( ) ;
47
45
} ;
You can’t perform that action at this time.
0 commit comments