1.0.3 • Published 2 years ago

error-event-listener v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Error Event Listener

Type-safe way to listen for all exceptions/rejections and render an optional fallback ui when a fatal error occurs.

codecov

Workflow

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.