devjar
devjar copied to clipboard
Error overlay
It should support displaying error overlay (for both compilation and runtime errors) inside the iframe and send back the error with stack to the main window.
Could also be a good chance to drop the returned error
property. for sending back the error we might need to return a callback setter to receive it? Like
{ onError } = useLiveCode(files)
onError((e) => {
...
})
I think it should either take an onError callback as the argument or return an error value.