-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Maximum call stack size exceeded on nested Routes in react-router-dom v6 #14877
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Assigning to @getsentry/support for routing ⏲️ |
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? |
A PR closing this issue has just been released 🚀This issue was referenced by PR #14878, which was included in the 8.48.0 release. |
3 tasks
# for free
to join this conversation on GitHub.
Already have an account?
# 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: