Skip to content

fix: process some keys for el[key] in hydration mismatch - #10060

Closed
zh-lx wants to merge 1 commit into
vuejs:mainfrom
zh-lx:fix-process-hydration-key
Closed

zh-lx wants to merge 1 commit into
vuejs:mainfrom
zh-lx:fix-process-hydration-key

Conversation

@zh-lx

@zh-lx zh-lx commented Jan 10, 2024

Copy link
Copy Markdown
Contributor

close #10057

Some keys need to be processed before they can be obtained by el[key]. Such as readonly -> readOnly

@github-actions

Copy link
Copy Markdown

Size Report

Bundles

File Size Gzip Brotli
runtime-dom.global.prod.js 89.5 kB 34.1 kB 30.7 kB
vue.global.prod.js 147 kB 53.3 kB 47.7 kB

Usages

Name Size Gzip Brotli
createApp 49.8 kB 19.5 kB 17.8 kB
createSSRApp 53.1 kB 20.8 kB 19 kB
defineCustomElement 52.1 kB 20.2 kB 18.5 kB
overall 63.3 kB 24.4 kB 22.3 kB

@yyx990803 yyx990803 closed this in 972face Jan 10, 2024
@yyx990803

Copy link
Copy Markdown
Member

The better fix is dealing with boolean attributes w/ separate logic - handling special cases like this is fragile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

input hydration mismatch with SSR

2 participants