From b4ebe7ae8b904f28cdda33caf87bc05718d3a08a Mon Sep 17 00:00:00 2001 From: Evan You Date: Tue, 26 Dec 2023 10:52:45 +0800 Subject: [PATCH] fix(warning): ensure prod hydration warnings actually work --- packages/runtime-core/src/warning.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/runtime-core/src/warning.ts b/packages/runtime-core/src/warning.ts index 8e93d9efe59..67e4ee31255 100644 --- a/packages/runtime-core/src/warning.ts +++ b/packages/runtime-core/src/warning.ts @@ -31,7 +31,7 @@ export function popWarningContext() { } export function warn(msg: string, ...args: any[]) { - if (!__DEV__) return + if (!__DEV__ && !__FEATURE_PROD_HYDRATION_MISMATCH_DETAILS__) return // avoid props formatting or warn handler tracking deps that might be mutated // during patch, leading to infinite recursion.