From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Tue, 2 Apr 2024 08:36:52 +0000 (+0530) Subject: fix(runtime-core): show hydration mismatch details for non-rectified mismatches too... X-Git-Tag: v3.4.22~32 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0dea7f9a260d93eb6c39aabac8c94c2c9b2042dd;p=thirdparty%2Fvuejs%2Fcore.git fix(runtime-core): show hydration mismatch details for non-rectified mismatches too when __PROD_HYDRATION_MISMATCH_DETAILS__ is set (#10599) --- diff --git a/.gitignore b/.gitignore index 810f885269..9dd21f59bf 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ TODOs.md .eslintcache dts-build/packages *.tsbuildinfo +*.tgz diff --git a/packages/runtime-core/src/hydration.ts b/packages/runtime-core/src/hydration.ts index de02ae46d8..8469577608 100644 --- a/packages/runtime-core/src/hydration.ts +++ b/packages/runtime-core/src/hydration.ts @@ -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