mirror of https://github.com/vuejs/core.git
fix(warning): ensure prod hydration warnings actually work
This commit is contained in:
parent
9cbb27745d
commit
b4ebe7ae8b
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue