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? |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
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.
useRouterError
in anerrorElement
), then I don't get access to the component stack trace.Is there something I'm missing? 🤔
Beta Was this translation helpful? Give feedback.
All reactions