Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(hydration): normalize text content to prevent false mismatch warnings #12536

Closed
wants to merge 1 commit into from

Conversation

jh-leong
Copy link
Member

close #12535

Normalize text content during hydration to align with browser parsing behavior and prevent unnecessary mismatch warnings, inspired by React's approach.

Copy link

Size Report

Bundles

File Size Gzip Brotli
runtime-dom.global.prod.js 100 kB (+128 B) 38 kB (+57 B) 34.3 kB (+73 B)
vue.global.prod.js 158 kB (+128 B) 57.9 kB (+71 B) 51.5 kB (+113 B)

Usages

Name Size Gzip Brotli
createApp (CAPI only) 46.6 kB 18.3 kB 16.7 kB
createApp 54.6 kB 21.3 kB 19.4 kB
createSSRApp 58.8 kB (+128 B) 23 kB (+70 B) 21 kB (+51 B)
defineCustomElement 59.4 kB 22.8 kB 20.8 kB
overall 68.4 kB 26.4 kB 24 kB

Copy link

pkg-pr-new bot commented Dec 12, 2024

Open in Stackblitz

@vue/compiler-core

npm i https://pkg.pr.new/@vue/compiler-core@12536

@vue/compiler-dom

npm i https://pkg.pr.new/@vue/compiler-dom@12536

@vue/compiler-ssr

npm i https://pkg.pr.new/@vue/compiler-ssr@12536

@vue/compiler-sfc

npm i https://pkg.pr.new/@vue/compiler-sfc@12536

@vue/reactivity

npm i https://pkg.pr.new/@vue/reactivity@12536

@vue/runtime-core

npm i https://pkg.pr.new/@vue/runtime-core@12536

@vue/runtime-dom

npm i https://pkg.pr.new/@vue/runtime-dom@12536

@vue/server-renderer

npm i https://pkg.pr.new/@vue/server-renderer@12536

@vue/shared

npm i https://pkg.pr.new/@vue/shared@12536

vue

npm i https://pkg.pr.new/vue@12536

@vue/compat

npm i https://pkg.pr.new/@vue/compat@12536

commit: a71360f

@jh-leong jh-leong closed this Dec 12, 2024
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.

Hydration mismatch with non-printable characters
1 participant