Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/tanstackstart-react
SDK Version
10.70.0
Framework Version
@tanstack/react-start@1.168.46
Link to Sentry event
No response
Reproduction Example/SDK Setup
sentryTanstackStart({
org: "...",
project: "...",
authToken: process.env.SENTRY_AUTH_TOKEN,
tunnelRoute: "/sentry-tunnel",
}),
Steps to Reproduce
Set up the Sentry SDK with tunnelRoute enabled. Then, make either a GET or POST request to the route, and observe that the root component's loader functions are run.
Expected Result
The tunnel route should behave as a server route, outside of the component layout hierarchy, and should not run any component data loaders.
Actual Result
The tunnel route is mounted as a virtual route which is a child of the root route in packages/tanstackstart-react/src/vite/tunnelRoute.ts. Therefore, when HTTP requests are sent to the tunnel endpoint, the root route's data loaders run.
Additional Context
No response
Priority
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it.
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/tanstackstart-react
SDK Version
10.70.0
Framework Version
@tanstack/react-start@1.168.46
Link to Sentry event
No response
Reproduction Example/SDK Setup
Steps to Reproduce
Set up the Sentry SDK with
tunnelRouteenabled. Then, make either a GET or POST request to the route, and observe that the root component's loader functions are run.Expected Result
The tunnel route should behave as a server route, outside of the component layout hierarchy, and should not run any component data loaders.
Actual Result
The tunnel route is mounted as a virtual route which is a child of the root route in
packages/tanstackstart-react/src/vite/tunnelRoute.ts. Therefore, when HTTP requests are sent to the tunnel endpoint, the root route's data loaders run.Additional Context
No response
Priority
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding
+1orme too, to help us triage it.