Skip to content

Commit b4ebe7a

Browse files
committed
fix(warning): ensure prod hydration warnings actually work
1 parent 9cbb277 commit b4ebe7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime-core/src/warning.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function popWarningContext() {
3131
}
3232

3333
export function warn(msg: string, ...args: any[]) {
34-
if (!__DEV__) return
34+
if (!__DEV__ && !__FEATURE_PROD_HYDRATION_MISMATCH_DETAILS__) return
3535

3636
// avoid props formatting or warn handler tracking deps that might be mutated
3737
// during patch, leading to infinite recursion.

0 commit comments

Comments
 (0)