error-event-listener
v1.0.3
Published
Type-safe way to listen for all exceptions/rejections and render an optional fallback ui when a fatal error occurs.
Downloads
1
Readme
Error Event Listener
Type-safe way to listen for all exceptions/rejections and render an optional fallback ui when a fatal error occurs.
The main motivation for this project was to listen to exceptions/rejections outside React and optionally provide a fallback ui to prevent a user from proceeding further with the app in a fatal state.
Note - This can be used in any application, but React is a prime example to showcase the listeners usage when a fatal error occurs outside its render tree.