File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed
packages/react-devtools-shared/src Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export const SESSION_STORAGE_RELOAD_AND_PROFILE_KEY =
30
30
export const LOCAL_STORAGE_SHOULD_BREAK_ON_CONSOLE_ERRORS =
31
31
'React::DevTools::breakOnConsoleErrors' ;
32
32
33
- export const LOCAL_STORAGE_SHOULD_ENABLE_DOUBLE_LOGGING =
33
+ export const LOCAL_STORAGE_SHOULD_SUPPRESS_DOUBLE_LOGGING =
34
34
'React::DevTools::suppressDoubleLogging' ;
35
35
36
36
export const LOCAL_STORAGE_SHOULD_PATCH_CONSOLE_KEY =
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import {
21
21
LOCAL_STORAGE_SHOULD_BREAK_ON_CONSOLE_ERRORS ,
22
22
LOCAL_STORAGE_SHOULD_PATCH_CONSOLE_KEY ,
23
23
LOCAL_STORAGE_TRACE_UPDATES_ENABLED_KEY ,
24
- LOCAL_STORAGE_SHOULD_ENABLE_DOUBLE_LOGGING ,
24
+ LOCAL_STORAGE_SHOULD_SUPPRESS_DOUBLE_LOGGING ,
25
25
} from 'react-devtools-shared/src/constants' ;
26
26
import { useLocalStorage } from '../hooks' ;
27
27
import { BridgeContext } from '../context' ;
@@ -88,7 +88,7 @@ function SettingsContextController({
88
88
suppressDoubleLogging ,
89
89
setsuppressDoubleLogging ,
90
90
] = useLocalStorage < boolean > (
91
- LOCAL_STORAGE_SHOULD_ENABLE_DOUBLE_LOGGING ,
91
+ LOCAL_STORAGE_SHOULD_SUPPRESS_DOUBLE_LOGGING ,
92
92
false ,
93
93
) ;
94
94
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ import {
34
34
LOCAL_STORAGE_FILTER_PREFERENCES_KEY ,
35
35
LOCAL_STORAGE_SHOULD_BREAK_ON_CONSOLE_ERRORS ,
36
36
LOCAL_STORAGE_SHOULD_PATCH_CONSOLE_KEY ,
37
- LOCAL_STORAGE_SHOULD_ENABLE_DOUBLE_LOGGING ,
37
+ LOCAL_STORAGE_SHOULD_SUPPRESS_DOUBLE_LOGGING ,
38
38
} from './constants' ;
39
39
import { ComponentFilterElementType , ElementTypeHostComponent } from './types' ;
40
40
import {
@@ -264,14 +264,16 @@ export function getBreakOnConsoleErrors(): boolean {
264
264
265
265
export function setsuppressDoubleLogging ( value : boolean ) : void {
266
266
localStorageSetItem (
267
- LOCAL_STORAGE_SHOULD_ENABLE_DOUBLE_LOGGING ,
267
+ LOCAL_STORAGE_SHOULD_SUPPRESS_DOUBLE_LOGGING ,
268
268
JSON . stringify ( value ) ,
269
269
) ;
270
270
}
271
271
272
272
export function getsuppressDoubleLogging(): boolean {
273
273
try {
274
- const raw = localStorageGetItem ( LOCAL_STORAGE_SHOULD_ENABLE_DOUBLE_LOGGING ) ;
274
+ const raw = localStorageGetItem (
275
+ LOCAL_STORAGE_SHOULD_SUPPRESS_DOUBLE_LOGGING ,
276
+ ) ;
275
277
if ( raw != null ) {
276
278
return JSON . parse ( raw ) ;
277
279
}
You can’t perform that action at this time.
0 commit comments