-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Package: reactIssues related to the Sentry React SDKIssues related to the Sentry React SDK
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/react
SDK Version
7.73
Framework Version
17.0.2
Link to Sentry event
No response
SDK Setup
No response
Steps to Reproduce
- Create SentryRoutes and use it to replace standard , for example:
const SentryRoutes = Sentry.withSentryReactRouterV6Routing(Routes);
...
return(
...
<SentryRoutes>
<Route path={URLPath.Home} element={<Home />} />
<Route path={URLPath.Notes} element={<Notes />} />
<Route path={URLPath.Notebooks} element={<Notebooks />} />
...
</SentryRoutes>
)
- Trigger state change inside Home component, it gets un-mounted and re-mounted.
Similar issue was reported here, but it was only for wrapUseRoutes
.
Expected Result
The component should be re-rendered.
Actual Result
The component is un-mounted and re-mounted instead.
mulac
Metadata
Metadata
Assignees
Labels
Package: reactIssues related to the Sentry React SDKIssues related to the Sentry React SDK
Projects
Status
Waiting for: Community
Status
Waiting for: Product Owner