Title: Investigate TanStack Start stable support and setup simplifications · Issue #26022 · getsentry/sentry-javascript · GitHub
Open Graph Title: Investigate TanStack Start stable support and setup simplifications · Issue #26022 · getsentry/sentry-javascript
X Title: Investigate TanStack Start stable support and setup simplifications · Issue #26022 · getsentry/sentry-javascript
Description: Review our TanStack Start integration for coverage improvements and substantial code simplifications without making setup harder. References below distinguish changes introduced in stable from earlier APIs surfaced during the review. Upd...
Open Graph Description: Review our TanStack Start integration for coverage improvements and substantial code simplifications without making setup harder. References below distinguish changes introduced in stable from earl...
X Description: Review our TanStack Start integration for coverage improvements and substantial code simplifications without making setup harder. References below distinguish changes introduced in stable from earl...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/26022
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Investigate TanStack Start stable support and setup simplifications","articleBody":"Review our TanStack Start integration for coverage improvements and substantial code simplifications without making setup harder. References below distinguish changes introduced in stable from earlier APIs surfaced during the review.\n\n1. **Update the test baseline to stable** \n [React Start 1.169.0](https://github.com/TanStack/router/releases/tag/%40tanstack/react-start%401.169.0) introduced stable support with changes documented in the [migration guide](https://tanstack.com/start/latest/docs/framework/react/migrate-from-release-candidate). Upgrade the primary fixture and run existing coverage to identify regressions. Retain older-version coverage where useful.\n\n2. **Preserve and document CSRF protection** \n [Upstream #7373](https://github.com/TanStack/router/pull/7373) introduced automatic server-function CSRF protection, but a custom `start.ts` requires explicit installation. This predates stable and affects our middleware setup. Add protection to fixtures and examples, audit wizard output, and document the requirement. Verify allowed and blocked requests without disrupting API routes or tunnels. See the [CSRF middleware documentation](https://tanstack.com/start/latest/docs/framework/react/guide/middleware#csrf-middleware).\n\n3. **Forward request options in server-entry examples** \n The [server-entry contract](https://tanstack.com/start/latest/docs/framework/react/guide/server-entry-point) passes both `request` and `opts`; our examples drop the second argument. Forward options and verify downstream context propagation. This is an existing setup gap identified during the stable review, rather than a newly introduced API.\n\n4. **Investigate moving server-function tracing into function middleware** \n [Upstream #6213](https://github.com/TanStack/router/pull/6213) introduced server-function metadata, and [#6394](https://github.com/TanStack/router/pull/6394) extended handler context with method and metadata, including nested-call coverage. These predate stable. Investigate using `serverFnMeta` in our existing function middleware to replace URL-based detection and later span renaming, covering custom RPC paths and nested invocations. Verify compatibility, error status, and measured duration without adding setup steps.\n\n5. **Investigate error capture through the server entry** \n Stable’s [error-handling changes in #7588](https://github.com/TanStack/router/pull/7588) make raw `createStartHandler()` rethrow original errors and keep `createServerEntry()` callbacks inside request context. Investigate whether catching there improves coverage while preserving response status, headers, and cookies. Remove existing error middleware only where coverage is preserved: serialized RPC errors still require middleware capture, and router-handled SSR errors do not reach this catch. See the [error-handling guidance](https://tanstack.com/start/latest/docs/framework/react/guide/server-entry-point#error-handling).\n\n6. **Investigate replacing generated route-tree parsing** \n The reviewed [stable handler implementation](https://github.com/TanStack/router/blob/%40tanstack/react-start%401.169.4/packages/start-server-core/src/createStartHandler.ts) uses runtime route matching. Evaluate whether we can reuse this instead of parsing generated files and maintaining our own matcher. No new general matched-route metadata API was identified in stable, so this remains a simplification investigation. Require substantial net code reduction while preserving SSR/API route names, unmatched-path behavior, compatibility, and ease of setup.\n\nSource maps are deferred. No separate streaming investigation is included.\n\nNeeds investigation. No external help wanted.\n","author":{"url":"https://github.com/nicohrubec","@type":"Person","name":"nicohrubec"},"datePublished":"2026-11-03T13:13:41Z","url":"https://github.com/getsentry/sentry-javascript/issues/26022"}
| 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:69aeece0-384c-b072-f7e6-69b3f245b78d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B3CA:3C245C:18D0F:1FE3F:6B04317D |
| html-safe-nonce | abe93b8aa0308c465b8c9858de2809fd8a4cc294a2f72787beb3c310f5392254 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCM0NBOjNDMjQ1QzoxOEQwRjoxRkUzRjo2QjA0MzE3RCIsInZpc2l0b3JfaWQiOiI4MDc3MTkxMzczNTQ1Mjg4MDYxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 54144fed438cae08916b627c1ef0972757408d2ffe2f9b2f39739635d7121a99 |
| hovercard-subject-tag | issue:6183304518 |
| 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/26022/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bed0b94718251abf3f65b2ccab2152e3994b9e1e28dbf023de7168e4a16ac474/getsentry/sentry-javascript/issues/26022 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bed0b94718251abf3f65b2ccab2152e3994b9e1e28dbf023de7168e4a16ac474/getsentry/sentry-javascript/issues/26022 |
| og:image:alt | Review our TanStack Start integration for coverage improvements and substantial code simplifications without making setup harder. References below distinguish changes introduced in stable from earl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nicohrubec |
| 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