-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maximum call stack size exceeded for nested routes (potential regression) #15279
Comments
FWIW, I've tried with both react-router v6 and v7 (updating the Sentry usage accordingly) but got the same error. Seemingly related: |
Thanks for the issue report @dawsonbooth. We'll try to reproduce it using the instructions. But if you could provide a reproducible example it would help us a lot. |
@dawsonbooth - Are you wrapping |
@onurtemizkan I was not, but now that I am I'm still running into the same error. I can't get a working repro made, so I'm thinking it's something weirdly specific to my usage. Some more context that may be helpful is that removing either the |
While I'm also still unable to reproduce the problem, my guess is #15281 would resolve your issue when both That aside, the instrumentation should not crash the application in any specific valid RR usage, so if we can get to reproduce your case without |
@onurtemizkan Got a repro! https://stackblitz.com/edit/github-7tjxzc-f7d7tmwl?file=src%2Fmain.tsx Think you're right as I'm using lazy-loaded routes and page components. |
Thanks for the repro @dawsonbooth! I am able to reproduce this, and working on a fix right now. #15283 |
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/react
SDK Version
8.45.0 and greater
Framework Version
18.3.1
Link to Sentry event
No response
Reproduction Example/SDK Setup
EDIT: https://stackblitz.com/edit/github-7tjxzc-f7d7tmwl?file=src%2Fmain.tsx
I'll work on getting an example up, but may take some time. Here's how I'm setting up Sentry – this all worked fine before upgrading the SDK:
Steps to Reproduce
Expected Result
Navigation works without error
Actual Result
URL updates but navigation does not occur. Error in console:
The text was updated successfully, but these errors were encountered: