mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
Add expando prop to disabledLog function (#18914)
This will enable it to be identified by Facebook infra even if the function name is mangled during DevTools build process.
This commit is contained in:
parent
fdb641629e
commit
9e5b2c94e6
|
|
@ -19,6 +19,7 @@ let prevWarn;
|
|||
let prevError;
|
||||
|
||||
function disabledLog() {}
|
||||
disabledLog.__reactDisabledLog = true;
|
||||
|
||||
export function disableLogs(): void {
|
||||
if (__DEV__) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user