3 ms·
If you don't add an error boundary, and you get an exception, then the app will unmount. The error will get logged to console in development even if the app swa
by danabramov 9y ago
If you don't add an error boundary, and you get an exception, then the app will unmount. The error will get logged to console in development even if the app swallows the error. So yes, it will help notice (and fix) such issues sooner. But I still recommend the explicit then(onSuccess, onError) form so that unhandled exceptions go through the top of the stack and register as uncaught errors in DevTools.