Title: React Router integration matches far more routes than the router on every navigation · Issue #25340 · getsentry/sentry-javascript · GitHub
Open Graph Title: React Router integration matches far more routes than the router on every navigation · Issue #25340 · getsentry/sentry-javascript
X Title: React Router integration matches far more routes than the router on every navigation · Issue #25340 · getsentry/sentry-javascript
Description: The React Router integration passes allRoutes (every nested route alongside its ancestors) to matchRoutes, which flattens each entry's children again, and then calls matchRoutes several times per navigation. On sentry.io's route tree thi...
Open Graph Description: The React Router integration passes allRoutes (every nested route alongside its ancestors) to matchRoutes, which flattens each entry's children again, and then calls matchRoutes several times per n...
X Description: The React Router integration passes allRoutes (every nested route alongside its ancestors) to matchRoutes, which flattens each entry's children again, and then calls matchRoutes several times p...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/25340
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"React Router integration matches far more routes than the router on every navigation","articleBody":"The React Router integration passes `allRoutes` (every nested route alongside its ancestors) to `matchRoutes`, which flattens each entry's children again, and then calls `matchRoutes` several times per navigation. On [sentry.io](\u003chttp://sentry.io>)'s route tree this costs \\~50ms per navigation (including query-only changes). It can also name a navigation after a nested route matched on its own instead of the route the router actually renders.\n\nFix: getsentry/sentry-javascript#25336","author":{"url":"https://github.com/JoshuaKGoldberg","@type":"Person","name":"JoshuaKGoldberg"},"datePublished":"2026-10-13T19:04:37Z","url":"https://github.com/getsentry/sentry-javascript/issues/25340"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2190f29c-2c41-e1cd-646b-67827e5cddcb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EB3E:1C5C1D:1B617F0:2474418:6B042B30 |
| html-safe-nonce | 3a17d49d3c560c28972cc30acb65bb9acd1e7ebd9a5a08e7f576556ef7f0628a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjNFOjFDNUMxRDoxQjYxN0YwOjI0NzQ0MTg6NkIwNDJCMzAiLCJ2aXNpdG9yX2lkIjoiNDE1ODc5NTk1NjY3NjIwOTQ1NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 97f7f67df6cff5933888285107c20aeedcccea56c1742d15c625f5e9ecc9dd41 |
| hovercard-subject-tag | issue:5836099528 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/25340/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5ddde496ccbc5e6738411c539712f5aacc5c1c392d52f79ad8f1385aed8c2f50/getsentry/sentry-javascript/issues/25340 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5ddde496ccbc5e6738411c539712f5aacc5c1c392d52f79ad8f1385aed8c2f50/getsentry/sentry-javascript/issues/25340 |
| og:image:alt | The React Router integration passes allRoutes (every nested route alongside its ancestors) to matchRoutes, which flattens each entry's children again, and then calls matchRoutes several times per n... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JoshuaKGoldberg |
| hostname | github.com |
| expected-hostname | github.com |
| None | b7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c3dd496c3da6ea6b77e69c09279d2b81604654f1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width