fix: remove loading state on eval error
This commit is contained in:
parent
e0c5566f35
commit
30d1f423cb
1 changed files with 3 additions and 0 deletions
|
|
@ -123,6 +123,9 @@ export function Repl({ embedded = false }) {
|
||||||
setLatestCode(code);
|
setLatestCode(code);
|
||||||
window.location.hash = '#' + encodeURIComponent(btoa(code));
|
window.location.hash = '#' + encodeURIComponent(btoa(code));
|
||||||
},
|
},
|
||||||
|
onEvalError: (err) => {
|
||||||
|
setPending(false);
|
||||||
|
},
|
||||||
onToggle: (play) => !play && cleanupDraw(false),
|
onToggle: (play) => !play && cleanupDraw(false),
|
||||||
drawContext,
|
drawContext,
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue