Replies: 3 comments 5 replies
|
hi @dcastil sorry for the late reply. Were you ever able to figure this out? Could you provide your example init code? |
|
Thank you for this discussion and for providing your solution. There is one thing that doesn't seem easy to implement: showing the Sentry crash-report modal, which is usually done with the <Sentry.ErrorBoundary fallback={...} showDialog>
...
</Sentry.ErrorBoundary>You wouldn't have a solution for that by any chance? I am so surprised there is so few resources about using React Router 6 with Sentry 🤔 I've created this issue in the docs repository. |
|
A partial workaround: set up your routes so everything is nested under one top-level route. In that top-level route component, wrap everything in Sentry's ErrorBoundary. You'll still need set |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone! 👋
I'm upgrading to React router v6 and wonder how Sentry error reporting is supposed to work with it. There doesn't seem to be an obvious way to do it.
useRouterErrorin anerrorElement), then I don't get access to the component stack trace.Is there something I'm missing? 🤔
All reactions