|
|
@@ -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
|