Skip to content

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

Notifications You must be signed in to change notification settings

zakarynichols/error-event-listener

Repository files navigation

Error Event Listener

Type-safe way to listen for all exceptions/rejections in the browser 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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published