mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-26 21:18:49 +00:00
fix: remove loading state on eval error
This commit is contained in:
parent
e0c5566f35
commit
30d1f423cb
@ -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…
x
Reference in New Issue
Block a user