fix: hot reloading
This commit is contained in:
parent
f44ceb46cd
commit
d7c2cf562f
1 changed files with 1 additions and 0 deletions
|
|
@ -128,6 +128,7 @@ export function Repl2({ embedded = false }) {
|
||||||
}
|
}
|
||||||
return () => {
|
return () => {
|
||||||
editorRef.current?.clear();
|
editorRef.current?.clear();
|
||||||
|
delete editorRef.current;
|
||||||
};
|
};
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue