mirror of https://github.com/vuejs/core.git
fix(runtime-core): show hydration mismatch details for non-rectified mismatches too when __PROD_HYDRATION_MISMATCH_DETAILS__ is set (#10599)
This commit is contained in:
parent
5aaa758867
commit
0dea7f9a26
|
@ -10,3 +10,4 @@ TODOs.md
|
||||||
.eslintcache
|
.eslintcache
|
||||||
dts-build/packages
|
dts-build/packages
|
||||||
*.tsbuildinfo
|
*.tsbuildinfo
|
||||||
|
*.tgz
|
||||||
|
|
|
@ -443,6 +443,7 @@ export function createHydrationFunctions(
|
||||||
if (props) {
|
if (props) {
|
||||||
if (
|
if (
|
||||||
__DEV__ ||
|
__DEV__ ||
|
||||||
|
__FEATURE_PROD_HYDRATION_MISMATCH_DETAILS__ ||
|
||||||
forcePatch ||
|
forcePatch ||
|
||||||
!optimized ||
|
!optimized ||
|
||||||
patchFlag & (PatchFlags.FULL_PROPS | PatchFlags.NEED_HYDRATION)
|
patchFlag & (PatchFlags.FULL_PROPS | PatchFlags.NEED_HYDRATION)
|
||||||
|
@ -450,7 +451,7 @@ export function createHydrationFunctions(
|
||||||
for (const key in props) {
|
for (const key in props) {
|
||||||
// check hydration mismatch
|
// check hydration mismatch
|
||||||
if (
|
if (
|
||||||
__DEV__ &&
|
(__DEV__ || __FEATURE_PROD_HYDRATION_MISMATCH_DETAILS__) &&
|
||||||
propHasMismatch(el, key, props[key], vnode, parentComponent)
|
propHasMismatch(el, key, props[key], vnode, parentComponent)
|
||||||
) {
|
) {
|
||||||
hasMismatch = true
|
hasMismatch = true
|
||||||
|
|
Loading…
Reference in New Issue