]> git.ipfire.org Git - thirdparty/vuejs/core.git/commit
feat(ssr): improve ssr hydration mismatch checks (#5953)
authorEvan You <yyx990803@gmail.com>
Fri, 8 Dec 2023 07:49:09 +0000 (15:49 +0800)
committerGitHub <noreply@github.com>
Fri, 8 Dec 2023 07:49:09 +0000 (15:49 +0800)
commit2ffc1e8cfdc6ec9c45c4a4dd8e3081b2aa138f1e
treed5693e321961fe598841ce6e21e58c0c6d4b514f
parent638f1abbb632000553e2b7d75e87c95d8ca192d6
feat(ssr): improve ssr hydration mismatch checks (#5953)

- Include the actual element in the warning message
- Also warn class/style/attribute mismatches

Note: class/style/attribute mismatches are check-only and will not be
rectified.

close #5063
packages/compiler-core/__tests__/transform.spec.ts
packages/compiler-core/src/transform.ts
packages/runtime-core/__tests__/hydration.spec.ts
packages/runtime-core/src/hydration.ts