Skip to content

Commit 0f01e31

Browse files
authored
fix: editor ignoring changes (#102)
1 parent 6963947 commit 0f01e31

File tree

1 file changed

+1
-1
lines changed
  • packages/components/react/src/CodeMirrorEditor

1 file changed

+1
-1
lines changed

packages/components/react/src/CodeMirrorEditor/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ export function CodeMirrorEditor({
173173
view.setState(state);
174174

175175
setEditorDocument(view, theme, language, readOnly, autoFocusOnDocumentChange, doc as TextEditorDocument);
176-
}, [doc]);
176+
}, [doc?.value, doc?.filePath, doc?.loading]);
177177

178178
return (
179179
<div className="h-full relative">

0 commit comments

Comments
 (0)