Skip to content

Commit

Permalink
dependencies for useEffect
Browse files Browse the repository at this point in the history
  • Loading branch information
OliwiaGowor committed Aug 26, 2024
1 parent d48d669 commit 2f72f50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/components/MonacoEditorESM/Editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export function Editor({
editorInstance.setValue(value);
prevValueRef.current = value;
}
}, [value]);
}, [value, editorInstance, readOnly]);

useUpdateValueOnParentChange({
updateValueOnParentChange,
Expand Down

0 comments on commit 2f72f50

Please sign in to comment.