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

show uncaught top-level exceptions

Open errge11ce opened this issue 10 years ago • 0 comments

If the developer creates an invalid DOM tree (e.g. table -> tr instead of table -> tbody -> tr), then react js itself will have strange issues. This is unfortunately can only be caught run time and the developer can see them by opening the browser's javascript console. On the other hand if the dev forgets to look into the console, the application just misbehave and will arrive at stranger and stranger states.

It would be nice to catch all top level exceptions and just replace the whole SPA with the message or at least display it at the top (similarly to connection errors in dev mode).

errge11ce avatar Oct 12 '15 14:10 errge11ce