Skip to content

Commit f55fd28

Browse files
author
poulphunter
committed
remove warning
1 parent 76722aa commit f55fd28

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/CanvasPyInterpreter.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ export default function CanvasPyInterpreter() {
138138
useEffect(() => {
139139
setCode(canvasData?.content ?? '');
140140
runCode(canvasData?.content ?? '').then(() => {});
141+
// no need to keep track of runCode
142+
// eslint-disable-next-line react-hooks/exhaustive-deps
141143
}, [canvasData?.content]);
142144

143145
if (canvasData?.type !== CanvasType.PY_INTERPRETER) {

0 commit comments

Comments
 (0)