Skip to content

Commit

Permalink
fix(warning): ensure prod hydration warnings actually work
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Dec 26, 2023
1 parent 9cbb277 commit b4ebe7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-core/src/warning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b4ebe7a

Please sign in to comment.