Skip to content

Commit 107e9bf

Browse files
committed
only useeffect on file id change
1 parent 1e575f9 commit 107e9bf

File tree

1 file changed

+1
-1
lines changed
  • client/modules/IDE/components/Editor

1 file changed

+1
-1
lines changed

client/modules/IDE/components/Editor/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ function Editor({
185185
showReplace,
186186
getContent
187187
});
188-
}, [file]);
188+
}, [file.id]);
189189

190190
useEffect(() => {
191191
// close the hinter window once the preference is turned off

0 commit comments

Comments
 (0)