You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Navigate to /demo/tanstack-query.
(On Firefox/Zen:) Now you should see an Error Message: TypeError: router.ClientSsr is undefined.
(On Chome:) Now you should see an Error Message: Cannot read properties of undefined (reading 'getStreamedValue')
These exceptions get thrown inside the _experimental_beforeQuery Method @tanstack/react-router-with-query/index.tsx#L69
Now I've bootstrapped another ts-app without Sentry. Tanstack-Query works now. Currently I'm trying to find the root-cause of this.
Expected behavior
I have expected that a newly created application works out of the box, without the exception mentioned above.
I think this has something todo with the Sentry.tanstackRouterBrowserTracingIntegration(router) call in router.tsx#L52. To be more precise the router instance handed to the sentry integration.
Why don't we call createRouter() once in the router.tsx file, but instead import it in client.tsx and ssr.tsx? Are there any Problems associated by calling the createRouter() function in router.tsx and importing that router instance from client.tsx?
Which project does this relate to?
Create Tanstack App
Describe the bug
@tanstack/react-query breaks, when Sentry is installed (atleast using create-tsrouter-app)
Your Example Website or App
https://github.com/KoCoder/tsrouter-sentry-query
Steps to Reproduce the Bug or Issue
(On Firefox/Zen:) Now you should see an Error Message: TypeError: router.ClientSsr is undefined.
(On Chome:) Now you should see an Error Message: Cannot read properties of undefined (reading 'getStreamedValue')
These exceptions get thrown inside the _experimental_beforeQuery Method @tanstack/react-router-with-query/index.tsx#L69
Now I've bootstrapped another ts-app without Sentry. Tanstack-Query works now. Currently I'm trying to find the root-cause of this.
Expected behavior
I have expected that a newly created application works out of the box, without the exception mentioned above.
Screenshots or Videos
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: