-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 on nested Routes in react-router-dom v6 #3484
Labels
Comments
Assigning to @getsentry/support for routing ⏲️ |
getsantry
bot
moved this from Waiting for: Support
to Waiting for: Product Owner
in GitHub Issues with 👀 3
Dec 20, 2024
Should be transferred to the JS SDK team. cc @lforst @AbhiPrasad |
Thanks for reporting this @Bartozzz. I have tried to reproduce this issue using the info above but unfortunately could not. Could you please provide a minimal reproduction to help us address this faster? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
self-hosted (https://develop.sentry.dev/self-hosted/)
Steps to Reproduce
After upgrading to
@sentry/react
version8.47.0
to have React Router Descendant Routes support, we encountered a problem withUncaught RangeError: Maximum call stack size exceeded
being thrown on some Routes.We use the pattern described here (
<Outlet />
) and<Navigate />
to do redirects on deprecated routes:It looks like, for some reason
getChildRoutesRecursively
recursion makes the stack size exceed.Expected Result
Should be working.
Actual Result
Throws an
Uncaught RangeError: Maximum call stack size exceeded
.Product Area
Unknown
Link
No response
DSN
No response
Version
No response
The text was updated successfully, but these errors were encountered: