René's URL Explorer Experiment


Title: [Vue] Page rendering overwrites component props declarations, removing defaults and validation · Issue #557 · voidzero-dev/void · GitHub

Open Graph Title: [Vue] Page rendering overwrites component props declarations, removing defaults and validation · Issue #557 · voidzero-dev/void

X Title: [Vue] Page rendering overwrites component props declarations, removing defaults and validation · Issue #557 · voidzero-dev/void

Description: Problem Void's Vue Pages adapter overwrites a page component's existing props declaration with the keys of the props received from the server. This discards Vue's prop types, default values, required flags, and custom validators. Additio...

Open Graph Description: Problem Void's Vue Pages adapter overwrites a page component's existing props declaration with the keys of the props received from the server. This discards Vue's prop types, default values, requir...

X Description: Problem Void's Vue Pages adapter overwrites a page component's existing props declaration with the keys of the props received from the server. This discards Vue's prop types, default va...

Opengraph URL: https://github.com/voidzero-dev/void/issues/557

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Vue] Page rendering overwrites component props declarations, removing defaults and validation","articleBody":"## Problem\n\nVoid's Vue Pages adapter overwrites a page component's existing props declaration with the keys of the props received from the server.\n\nThis discards Vue's prop types, default values, required flags, and custom validators.\n\nAdditionally, the component's props declaration becomes fixed based on the first received props object, potentially affecting subsequent navigations.\n\n## Steps to Reproduce\n\n1. Create the following page component:\n\n```vue\n\u003cscript setup lang=\"ts\">\ndefineProps({\n  title: {\n    type: String,\n    default: 'DEFAULT',\n  },\n  count: {\n    type: Number,\n    required: true,\n    validator: (value: number) => value > 0,\n  },\n});\n\u003c/script>\n\n\u003ctemplate>\n  \u003cp>title: {{ title }}\u003c/p>\n  \u003cp>count: {{ count }}\u003c/p>\n\u003c/template>\n```\n\n2. Render the page with `title` omitted and `count: -1`:\n\n```ts\n{\n  component: 'Example',\n  props: { count: -1 },\n  url: '/example',\n  params: {},\n  shared: {},\n  errors: null,\n}\n```\n\n3. Check the rendered output and Vue's validation warnings.\n\n## Actual Behavior\n\nBoth the generated SSR and client code contain the following implementation:\n\n```js\nfunction patchProps(comp, props) {\n  if (comp.__voidPatched) return;\n  comp.props = Object.keys(props);\n  comp.__voidPatched = true;\n}\n```\n\nThis replaces the original props declaration with:\n\n```js\ncomp.props = ['count'];\n```\n\nConsequently:\n\n- The `title` default value (`DEFAULT`) is lost.\n- The type, required flag, and custom validator for `count` are removed.\n- `__voidPatched` prevents the declaration from adapting to subsequent props objects.\n- Other usages of the same component definition may also be affected.\n\n## Root Cause\n\nThe Vue Pages adapter strips type arguments from `defineProps\u003cT>()` and dynamically registers props based on the received page data.\n\nHowever, `patchProps()` also runs on components with existing runtime props declarations.\n\nInstead of supplementing missing declarations, it replaces the entire `comp.props` definition.\n\nThe `__voidPatched` flag then prevents subsequent updates to the registered prop names.\n\n## Expected Behavior\n\n- Preserve the component's original Vue props declaration.\n- Apply `DEFAULT` when `title` is omitted.\n- Emit a validation warning for `count: -1` in development mode.\n- Preserve the same props contract across page navigations.\n\n## Acceptance Criteria\n\n- Preserve prop types, default values, required flags, and custom validators.\n- Do not derive a permanent props declaration from the first received props object.\n- Preserve props behavior across subsequent navigations.\n- Avoid mutating the original component definition.\n- Ensure consistent behavior in both SSR and client rendering.\n- Maintain compatibility with existing type-based `defineProps\u003cT>()` declarations.\n\n## Relevant Code\n\n`packages/vue/src/plugin-pages.ts`\n\nhttps://github.com/voidzero-dev/void/blob/main/packages/vue/src/plugin-pages.ts\n\nThe affected `patchProps()` implementation is generated by both `generateRendererModule()` and `generateClientEntry()`.\n\nThe problematic code path has been verified through source inspection. The reproduction above has not yet been executed as a runtime test.","author":{"url":"https://github.com/kotarotaniguchi0523","@type":"Person","name":"kotarotaniguchi0523"},"datePublished":"2026-10-23T03:30:15Z","url":"https://github.com/voidzero-dev/void/issues/557"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:3563782a-196a-70fd-6ca8-3fffccafd9a7
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8DEA:AF687:1DD8566:287DBB3:6AFB9A72
html-safe-nonce3224b30b91e8501a4ca439a817fe66932a56879362284c20b0e0ae75b553d9f7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4REVBOkFGNjg3OjFERDg1NjY6Mjg3REJCMzo2QUZCOUE3MiIsInZpc2l0b3JfaWQiOiI4NjM1MDA3MjQzMzE5NDgyOTk0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac8cd236c80e2678b3bdd1599d2d14632a99c53ebc1a525fd11eb3efefc1e0f308
hovercard-subject-tagissue:5991361245
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/voidzero-dev/void/557/issue_layout
twitter:imagehttps://opengraph.githubassets.com/bdb8202ec8b5c83bc46a7580950eea56c709b079d62102345a61a86849d01539/voidzero-dev/void/issues/557
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/bdb8202ec8b5c83bc46a7580950eea56c709b079d62102345a61a86849d01539/voidzero-dev/void/issues/557
og:image:altProblem Void's Vue Pages adapter overwrites a page component's existing props declaration with the keys of the props received from the server. This discards Vue's prop types, default values, requir...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekotarotaniguchi0523
hostnamegithub.com
expected-hostnamegithub.com
None3cefd19a936819d82cfb5279d50fb56fe79cb9ec30f0f807e04e89b0c58ffae1
turbo-cache-controlno-preview
go-importgithub.com/voidzero-dev/void git https://github.com/voidzero-dev/void.git
octolytics-dimension-user_id149750581
octolytics-dimension-user_loginvoidzero-dev
octolytics-dimension-repository_id1164437080
octolytics-dimension-repository_nwovoidzero-dev/void
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1164437080
octolytics-dimension-repository_network_root_nwovoidzero-dev/void
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
release606800bdb1b81d125fc845bdcc262c9fe063fc8f
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/voidzero-dev/void/issues/557#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fvoidzero-dev%2Fvoid%2Fissues%2F557
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%2Fvoidzero-dev%2Fvoid%2Fissues%2F557
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=voidzero-dev%2Fvoid
Reloadhttps://github.com/voidzero-dev/void/issues/557
Reloadhttps://github.com/voidzero-dev/void/issues/557
Reloadhttps://github.com/voidzero-dev/void/issues/557
voidzero-devhttps://github.com/voidzero-dev
voidhttps://github.com/voidzero-dev/void
Codehttps://github.com/voidzero-dev/void
Issues31 (31)https://github.com/voidzero-dev/void/issues
Pull requests16 (16)https://github.com/voidzero-dev/void/pulls
Discussionshttps://github.com/voidzero-dev/void/discussions
Actionshttps://github.com/voidzero-dev/void/actions
Security and qualityhttps://github.com/voidzero-dev/void/security
Insightshttps://github.com/voidzero-dev/void/pulse
https://github.com/voidzero-dev/void
New issuehttps://github.com/login?return_to=https://github.com/voidzero-dev/void/issues/557
New issuehttps://github.com/login?return_to=https://github.com/voidzero-dev/void/issues/557
#589https://github.com/voidzero-dev/void/pull/589
[Vue] Page rendering overwrites component props declarations, removing defaults and validationhttps://github.com/voidzero-dev/void/issues/557#top
#589https://github.com/voidzero-dev/void/pull/589
https://github.com/kotarotaniguchi0523
kotarotaniguchi0523https://github.com/kotarotaniguchi0523
on Oct 23, 2026https://github.com/voidzero-dev/void/issues/557#issue-5991361245
https://github.com/voidzero-dev/void/blob/main/packages/vue/src/plugin-pages.tshttps://github.com/voidzero-dev/void/blob/main/packages/vue/src/plugin-pages.ts
cursorhttps://github.com/apps/cursor
on Oct 25, 2026https://github.com/voidzero-dev/void/issues/557#event-34173099139
fix(vue): preserve runtime props declarations in pages patchPropshttps://github.com/0froq/void-fork/commit/65bf4dc43b3c564d288d9dc5b07e5630017dc433
65bf4dchttps://github.com/0froq/void-fork/commit/65bf4dc43b3c564d288d9dc5b07e5630017dc433
fix(vue): preserve runtime props declarations in pages patchPropshttps://github.com/0froq/void-fork/commit/d80df5c91dfb7b333a35d8d323938e45b7d952e6
d80df5chttps://github.com/0froq/void-fork/commit/d80df5c91dfb7b333a35d8d323938e45b7d952e6
https://github.com/0froq
0froqhttps://github.com/0froq
on Oct 26, 2026https://github.com/voidzero-dev/void/issues/557#issuecomment-6407819330
cpojerhttps://github.com/cpojer
completedhttps://github.com/voidzero-dev/void/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#589https://github.com/voidzero-dev/void/pull/589
on Oct 26, 2026https://github.com/voidzero-dev/void/issues/557#event-34223093770
Brooooooklynhttps://github.com/Brooooooklyn
on Oct 26, 2026https://github.com/voidzero-dev/void/issues/557#event-34224959558
fix(vue): preserve runtime props declarations in pages patchProps (vo…https://github.com/yangshun/void/commit/8c311ddb8e94c39c8828a6c0b918f87e3724fc4c
vo…https://github.com/voidzero-dev/void/pull/589
8c311ddhttps://github.com/yangshun/void/commit/8c311ddb8e94c39c8828a6c0b918f87e3724fc4c
Sign up for freehttps://github.com/signup?return_to=https://github.com/voidzero-dev/void/issues/557
Sign in to commenthttps://github.com/login?return_to=https://github.com/voidzero-dev/void/issues/557
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.