ErrorBoundary info parameter #5424
dmitri-minkin
started this conversation in
Proposals
Replies: 1 comment
-
I think this makes sense to proxy along any additional metadata made available via the rendering layer.
I think I would lean towards 2 since it keeps the API surface a bit smaller |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
It would be nice to have
info
parameter in the Remix ErrorBoundary in addition toerror
similar to React ErrorBoundary that hascomponentDidCatch(error, info)
Why do we need this ?
We want to use Bugsnag to notify about errors. Bugsnag example for this where it uses both
error
andinfo
parameters:Combining Bugsnag and Remix ErrorBoundary
In general we would like to go even further with somehow combining Bugsnag and Remix ErrorBoundary in our app.
See discussion about custom ErrorBoundary and Bugsnaghere
Bugsnag has it's own ErrorBoundary defined here which is a bit more powerful then just sending Bugsnag.notify(...)
Beta Was this translation helpful? Give feedback.
All reactions