We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1303879 + 9b06ba4 commit b31994dCopy full SHA for b31994d
client/components/project-screen/code-editor/code-area.tsx
@@ -14,7 +14,7 @@ export default function CodeArea() {
14
15
// states
16
const [currentFileContent, setCurrentFileContent] = useState<string | null>(
17
- null,
+ null
18
);
19
20
// handle current file content change
@@ -40,7 +40,7 @@ export default function CodeArea() {
40
const { fileContent } = readFileContent({ fileId: selectedFile.id });
41
setCurrentFileContent(fileContent);
42
}
43
- }, [selectedFile, readFileContent]);
+ }, [selectedFile]);
44
45
// if there is no opened tabs then set file content to null
46
useEffect(() => {
0 commit comments