René's URL Explorer Experiment


Title: Bundler-injected defaults override explicit `ClientEventBus` config · Issue #499 · TanStack/devtools · GitHub

Open Graph Title: Bundler-injected defaults override explicit `ClientEventBus` config · Issue #499 · TanStack/devtools

X Title: Bundler-injected defaults override explicit `ClientEventBus` config · Issue #499 · TanStack/devtools

Description: TanStack Devtools version @tanstack/devtools-event-bus: 0.4.2 | @tanstack/devtools-vite: 0.8.3 Framework/Library version @tanstack/svelte-devtools: 0.1.3 Describe the bug and the steps to reproduce it ClientEventBus accepts explicit port...

Open Graph Description: TanStack Devtools version @tanstack/devtools-event-bus: 0.4.2 | @tanstack/devtools-vite: 0.8.3 Framework/Library version @tanstack/svelte-devtools: 0.1.3 Describe the bug and the steps to reproduce...

X Description: TanStack Devtools version @tanstack/devtools-event-bus: 0.4.2 | @tanstack/devtools-vite: 0.8.3 Framework/Library version @tanstack/svelte-devtools: 0.1.3 Describe the bug and the steps to reproduce...

Opengraph URL: https://github.com/TanStack/devtools/issues/499

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bundler-injected defaults override explicit `ClientEventBus` config","articleBody":"### TanStack Devtools version\n\n@tanstack/devtools-event-bus: 0.4.2 | @tanstack/devtools-vite: 0.8.3\n\n### Framework/Library version\n\n@tanstack/svelte-devtools: 0.1.3\n\n### Describe the bug and the steps to reproduce it\n\n`ClientEventBus` accepts explicit `port`, `host`, and `protocol` options, but a Vite or Rspack connection transform can override them. The constructor passes each explicit option through `getDefault*()` after destructuring [client.ts#L91-L105](https://github.com/TanStack/devtools/blob/53805408af7e6010e209f21a073204411bc1267f/packages/event-bus/src/client/client.ts#L91-L105).\n\nThe Vite connection-injection plugin replaces every `__TANSTACK_DEVTOOLS_*__` placeholder with the bundler's connection value [plugin.ts#L576-L608](https://github.com/TanStack/devtools/blob/53805408af7e6010e209f21a073204411bc1267f/packages/devtools-vite/src/plugin.ts#L576-L608). After that transform, each `getDefault*()` helper always returns the injected value, even when the caller supplied a different runtime value. For example, `new ClientEventBus({ host: 'devtools.example.com', port: 443, protocol: 'https' })` can still connect to the injected `localhost` HTTP endpoint.\n\nThis prevents applications behind a development proxy from directing the browser event bus through the public HTTPS origin. The client instead attempts to connect to the bundler's internal host, port, and protocol.\n\n### Expected behavior\n\nExplicit `ClientEventBus` options should take precedence over bundler-injected defaults. Bundler-injected values should apply when an option is omitted, and the built-in `localhost:4206` HTTP values should remain the final fallback.\n\nThe constructor can preserve that precedence by resolving each injected default in the parameter default and assigning an explicitly supplied value directly.\n\n### Your Minimal, Reproducible Example - (Sandbox Highly Recommended)\n\nhttps://stackblitz.com/edit/vitejs-vite-nz7smy9p?file=package.json,index.html,vite.config.ts,src%2Fmain.ts\n\n### Do you intend to try to help solve this bug with your own PR?\n\nYes, I am also opening a PR that solves the problem along side this issue\n\n### Terms & Code of Conduct\n\n- [x] I agree to follow this project's Code of Conduct\n- [x] I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.","author":{"url":"https://github.com/kolaworld","@type":"Person","name":"kolaworld"},"datePublished":"2026-08-15T22:13:53Z","url":"https://github.com/TanStack/devtools/issues/499"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d90adcd3-2d6e-0ebc-d0c6-5a98b1ffdc5f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9E24:23B0E1:40EE8:5BCA1:6AF9BC56
html-safe-nonce5562917fdefa3b2f99cb2cf59369a25ddca9aa3a973f1b46a70c9f9266feb4c7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTI0OjIzQjBFMTo0MEVFODo1QkNBMTo2QUY5QkM1NiIsInZpc2l0b3JfaWQiOiIyMDIxMzk4MTE1OTUyMjEzMDc4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac5029a41df7478ea8d13f08dbd11d599245603d5056b79d29deaef5005e0d8b45
hovercard-subject-tagissue:5161558372
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/TanStack/devtools/499/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e48fce5ce3d2402e3e7eea2b5c5781f6f2071415d7ebdf06aa76a73e7bd5a07e/TanStack/devtools/issues/499
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e48fce5ce3d2402e3e7eea2b5c5781f6f2071415d7ebdf06aa76a73e7bd5a07e/TanStack/devtools/issues/499
og:image:altTanStack Devtools version @tanstack/devtools-event-bus: 0.4.2 | @tanstack/devtools-vite: 0.8.3 Framework/Library version @tanstack/svelte-devtools: 0.1.3 Describe the bug and the steps to reproduce...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekolaworld
hostnamegithub.com
expected-hostnamegithub.com
None612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7
turbo-cache-controlno-preview
go-importgithub.com/TanStack/devtools git https://github.com/TanStack/devtools.git
octolytics-dimension-user_id72518640
octolytics-dimension-user_loginTanStack
octolytics-dimension-repository_id1026402761
octolytics-dimension-repository_nwoTanStack/devtools
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1026402761
octolytics-dimension-repository_network_root_nwoTanStack/devtools
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release072e34035c13c31543fba9f025cbbbda4210dae4
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/TanStack/devtools/issues/499#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FTanStack%2Fdevtools%2Fissues%2F499
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FTanStack%2Fdevtools%2Fissues%2F499
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=TanStack%2Fdevtools
Reloadhttps://github.com/TanStack/devtools/issues/499
Reloadhttps://github.com/TanStack/devtools/issues/499
Reloadhttps://github.com/TanStack/devtools/issues/499
TanStackhttps://github.com/TanStack
devtoolshttps://github.com/TanStack/devtools
Codehttps://github.com/TanStack/devtools
Issues24 (24)https://github.com/TanStack/devtools/issues
Pull requests25 (25)https://github.com/TanStack/devtools/pulls
Discussionshttps://github.com/TanStack/devtools/discussions
Actionshttps://github.com/TanStack/devtools/actions
Security and qualityhttps://github.com/TanStack/devtools/security
Insightshttps://github.com/TanStack/devtools/pulse
https://github.com/TanStack/devtools
New issuehttps://github.com/login?return_to=https://github.com/TanStack/devtools/issues/499
New issuehttps://github.com/login?return_to=https://github.com/TanStack/devtools/issues/499
#500https://github.com/TanStack/devtools/pull/500
Bundler-injected defaults override explicit ClientEventBus confighttps://github.com/TanStack/devtools/issues/499#top
#500https://github.com/TanStack/devtools/pull/500
https://github.com/kolaworld
kolaworldhttps://github.com/kolaworld
on Aug 15, 2026https://github.com/TanStack/devtools/issues/499#issue-5161558372
client.ts#L91-L105https://github.com/TanStack/devtools/blob/53805408af7e6010e209f21a073204411bc1267f/packages/event-bus/src/client/client.ts#L91-L105
plugin.ts#L576-L608https://github.com/TanStack/devtools/blob/53805408af7e6010e209f21a073204411bc1267f/packages/devtools-vite/src/plugin.ts#L576-L608
https://stackblitz.com/edit/vitejs-vite-nz7smy9p?file=package.json,index.html,vite.config.ts,src%2Fmain.tshttps://stackblitz.com/edit/vitejs-vite-nz7smy9p?file=package.json,index.html,vite.config.ts,src%2Fmain.ts
AlemTuzlakhttps://github.com/AlemTuzlak
completedhttps://github.com/TanStack/devtools/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#500https://github.com/TanStack/devtools/pull/500
on Aug 17, 2026https://github.com/TanStack/devtools/issues/499#event-29563599916
Sign up for freehttps://github.com/signup?return_to=https://github.com/TanStack/devtools/issues/499
Sign in to commenthttps://github.com/login?return_to=https://github.com/TanStack/devtools/issues/499
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.