Browse Source
fix(runtime-core): show hydration mismatch details for non-rectified mismatches too when __PROD_HYDRATION_MISMATCH_DETAILS__ is set (#10599)
pull/10639/head
Divyansh Singh
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
3 additions and
1 deletions
-
.gitignore
-
packages/runtime-core/src/hydration.ts
|
|
@ -10,3 +10,4 @@ TODOs.md |
|
|
|
.eslintcache |
|
|
|
dts-build/packages |
|
|
|
*.tsbuildinfo |
|
|
|
*.tgz |
|
|
@ -443,6 +443,7 @@ export function createHydrationFunctions( |
|
|
|
if (props) { |
|
|
|
if ( |
|
|
|
__DEV__ || |
|
|
|
__FEATURE_PROD_HYDRATION_MISMATCH_DETAILS__ || |
|
|
|
forcePatch || |
|
|
|
!optimized || |
|
|
|
patchFlag & (PatchFlags.FULL_PROPS | PatchFlags.NEED_HYDRATION) |
|
|
@ -450,7 +451,7 @@ export function createHydrationFunctions( |
|
|
|
for (const key in props) { |
|
|
|
// check hydration mismatch
|
|
|
|
if ( |
|
|
|
__DEV__ && |
|
|
|
(__DEV__ || __FEATURE_PROD_HYDRATION_MISMATCH_DETAILS__) && |
|
|
|
propHasMismatch(el, key, props[key], vnode, parentComponent) |
|
|
|
) { |
|
|
|
hasMismatch = true |
|
|
|