Title: Using the SvelteKit SDK breaks SSR functionality of TanStack Query · Issue #8818 · getsentry/sentry-javascript · GitHub
Open Graph Title: Using the SvelteKit SDK breaks SSR functionality of TanStack Query · Issue #8818 · getsentry/sentry-javascript
X Title: Using the SvelteKit SDK breaks SSR functionality of TanStack Query · Issue #8818 · getsentry/sentry-javascript
Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using the latest SDK release https://github.com/...
Open Graph Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
X Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/8818
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Using the SvelteKit SDK breaks SSR functionality of TanStack Query","articleBody":"### Is there an existing issue for this?\n\n- [X] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\n- [X] I have reviewed the documentation https://docs.sentry.io/\n- [X] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\n\n### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Which SDK are you using?\n\n@sentry/sveltekit\n\n### SDK Version\n\n7.64.0\n\n### Framework Version\n\n7.64.0\n\n### Link to Sentry event\n\n_No response_\n\n### SDK Setup\n\n_No response_\n\n### Steps to Reproduce\n\nWhen using your SvelteKit SDK, and specifically your Vite plugin for SvelteKit, the preloading / SSR functionality of TanStack Query for Svelte seems broken.\r\n\r\n1. Clone my https://github.com/kevinrenskers/sveltequery-sentry-sveltekit repo and npm install\r\n2. npm run dev, open http://127.0.0.1:5173\r\n3. Open the javascript console and then click on the \"Articles\" link in the top\r\n\r\nYou will see that the posts array is first undefined, and then it gets data:\r\n\r\n\u003cimg width=\"1324\" alt=\"Screenshot 2023-08-15 at 14 29 45\" src=\"https://github.com/TanStack/query/assets/229384/0e3c5bd5-1753-4b23-9d00-c06e8f073f8e\">\r\n\r\nNow edit `vite.config.ts` and remove `sentrySvelteKit()` from the plugins. Restart the dev server and do the same thing again: start on the homepage and then go to articles. Now the posts array is immediately defined:\r\n\r\n\u003cimg width=\"1324\" alt=\"Screenshot 2023-08-15 at 14 28 47\" src=\"https://github.com/TanStack/query/assets/229384/abf19b3b-bc67-4107-a1f0-e33fe37eb633\">\r\n\r\nIt does have a real effect in my website, where articles pop in a fraction of a second later instead of already being there. Basically SSR seems broken.\n\n### Expected Result\n\nI don't know if the problem lies with your `sentrySvelteKit` Vite plugin which modifies the `fetch` function, or if the problem lies with Query which can't deal with these changes. But I would expect that installing your SvelteKit SDK and Vite plugin to not change the behavior of my site when using Query.\r\n\r\nAlso reported in their repo: https://github.com/TanStack/query/issues/5871\n\n### Actual Result\n\nSee repro steps above","author":{"url":"https://github.com/kevinrenskers","@type":"Person","name":"kevinrenskers"},"datePublished":"2023-08-15T12:54:22Z","url":"https://github.com/getsentry/sentry-javascript/issues/8818"}
| 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:d5dc140d-2119-cfd4-a918-9b8c990a0da2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9ED2:1F57:5CDA9:85FD9:6B0449E4 |
| html-safe-nonce | f746baeeedf13bd2cff720e6341a65982cf06b24b2b8ffa2804d804cbfbacbbf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RUQyOjFGNTc6NUNEQTk6ODVGRDk6NkIwNDQ5RTQiLCJ2aXNpdG9yX2lkIjoiODQ3NzgzMDU5NDgxOTcxMTcyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1a013c3a5e255f5d8e92793f0370028364de583e142d5437603dc53bf6d2784f |
| hovercard-subject-tag | issue:1851393821 |
| 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/8818/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2eb1ff901ab8b392f7a14fcda407c9fe2c0905a0b45da27d3fff8824e669df73/getsentry/sentry-javascript/issues/8818 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2eb1ff901ab8b392f7a14fcda407c9fe2c0905a0b45da27d3fff8824e669df73/getsentry/sentry-javascript/issues/8818 |
| og:image:alt | Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kevinrenskers |
| hostname | github.com |
| expected-hostname | github.com |
| None | d4495c3631faba668036f176d1f5946901c5172efd73a6edb984029e7d4f8e46 |
| 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 | 9ac4337fb7c6a5846cdfdb1a04f154d3c33ebc77 |
| 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