devjar icon indicating copy to clipboard operation
devjar copied to clipboard

Error overlay

Open shuding opened this issue 2 years ago • 2 comments

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.

shuding avatar Apr 27 '22 09:04 shuding

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) => {
  ...
})

huozhi avatar Apr 28 '22 22:04 huozhi

I think it should either take an onError callback as the argument or return an error value.

shuding avatar May 04 '22 22:05 shuding