fix(warning): ensure prod hydration warnings actually work

This commit is contained in:
Evan You 2023-12-26 10:52:45 +08:00
parent 9cbb27745d
commit b4ebe7ae8b
1 changed files with 1 additions and 1 deletions

View File

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