Title: ReactRouter v6 instrumentation does not consider `initialEntries` for pageload transactions when using memory router · Issue #14814 · getsentry/sentry-javascript · GitHub
Open Graph Title: ReactRouter v6 instrumentation does not consider `initialEntries` for pageload transactions when using memory router · Issue #14814 · getsentry/sentry-javascript
X Title: ReactRouter v6 instrumentation does not consider `initialEntries` for pageload transactions when using memory router · Issue #14814 · getsentry/sentry-javascript
Description: Description A user reported that they are using withSentryReactRouterV6Routing(Routes) with createMemoryRouter(). The user is passing in the initial routes to render via createMemoryRouter's initialEntries option. They observed that for ...
Open Graph Description: Description A user reported that they are using withSentryReactRouterV6Routing(Routes) with createMemoryRouter(). The user is passing in the initial routes to render via createMemoryRouter's initia...
X Description: Description A user reported that they are using withSentryReactRouterV6Routing(Routes) with createMemoryRouter(). The user is passing in the initial routes to render via createMemoryRouter's in...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/14814
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ReactRouter v6 instrumentation does not consider `initialEntries` for pageload transactions when using memory router","articleBody":"### Description\n\nA user reported that they are using `withSentryReactRouterV6Routing(Routes)` with [`createMemoryRouter()`](https://api.reactrouter.com/v7/functions/react_router.createMemoryRouter.html).\nThe user is passing in the initial routes to render via `createMemoryRouter`'s `initialEntries` option.\n\nThey observed that for their application they exclusively got `/index.html` pageload transactions when the app loads. This is undesired behavior.\n\nWe should probably use the `initialEntries` option for pageload transactions instead of `window.location.pathname` when available.\n\nOne thing we need to be somewhat wary of is that people may use the same opts for a memory router and for a browser router and for the browser router it would probably be undesired to take the `initialEntries`. Maybe we need to be clever to properly distinguish.\n\nThis should land in both the v8 and develop branches.","author":{"url":"https://github.com/lforst","@type":"Person","name":"lforst"},"datePublished":"2024-12-20T11:07:12Z","url":"https://github.com/getsentry/sentry-javascript/issues/14814"}
| 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:9ac39664-5193-ab49-dee1-22a020af55d3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8964:E0CE1:146255F:1AA909A:6B0508AA |
| html-safe-nonce | 398490e05349a79ea793151602ed8e33c10d5879f13d92c24136161604fa602e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OTY0OkUwQ0UxOjE0NjI1NUY6MUFBOTA5QTo2QjA1MDhBQSIsInZpc2l0b3JfaWQiOiI4ODMxMzc5ODg2ODk2OTA4NDU4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 71cc34d30a46b1a06a250fcbb09451037190e3073e06d61dbfd532e1ff022efe |
| hovercard-subject-tag | issue:2752505659 |
| 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/14814/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7d88355b8c4884ee3ca7bf3a505cfe8313a8399d93e5a794d10dc126aa547c13/getsentry/sentry-javascript/issues/14814 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7d88355b8c4884ee3ca7bf3a505cfe8313a8399d93e5a794d10dc126aa547c13/getsentry/sentry-javascript/issues/14814 |
| og:image:alt | Description A user reported that they are using withSentryReactRouterV6Routing(Routes) with createMemoryRouter(). The user is passing in the initial routes to render via createMemoryRouter's initia... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lforst |
| hostname | github.com |
| expected-hostname | github.com |
| None | 854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b |
| 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 | 220e980097d94ce616d5d11fbd5316d208e3fc93 |
| 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