]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(runtime-core): show hydration mismatch details for non-rectified mismatches too...
authorDivyansh Singh <40380293+brc-dd@users.noreply.github.com>
Tue, 2 Apr 2024 08:36:52 +0000 (14:06 +0530)
committerGitHub <noreply@github.com>
Tue, 2 Apr 2024 08:36:52 +0000 (16:36 +0800)
.gitignore
packages/runtime-core/src/hydration.ts

index 810f8852690d6b7ffb456349cc405196168f8cbb..9dd21f59bf6fd8cfd5a5ada8add15c3bd2ca26c0 100644 (file)
@@ -10,3 +10,4 @@ TODOs.md
 .eslintcache
 dts-build/packages
 *.tsbuildinfo
+*.tgz
index de02ae46d8a1d0848f4c31d5567de7e8a08c3455..8469577608e45b4d72fe5e35e42fc0f462964c59 100644 (file)
@@ -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