react-runner icon indicating copy to clipboard operation
react-runner copied to clipboard

Catch errors

Open anubra266 opened this issue 1 year ago • 1 comments

Errors for preview can be shown in LiveError component. But errors are also thrown to console. Is there any way to prevent this. I'm trying to not show the errors in the console.

anubra266 avatar Dec 25 '23 14:12 anubra266

One way, although hacky would be to overwrite / monkey patch the console.log function in the dynamic code you are rendering. This would make sure that any console logs from your dynamic code is not reflecting in your browser's dev-tools.

agarwalshashank95 avatar Jul 04 '24 17:07 agarwalshashank95