File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
packages/react-devtools-shared/src Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ export const SESSION_STORAGE_RELOAD_AND_PROFILE_KEY =
51
51
export const LOCAL_STORAGE_SHOULD_BREAK_ON_CONSOLE_ERRORS =
52
52
'React::DevTools::breakOnConsoleErrors' ;
53
53
54
- export const LOCAL_STORAGE_SHOULD_PATCH_CONSOLE_KEY =
54
+ export const LOCAL_STORAGE_SHOULD_APPEND_COMPONENT_STACK_KEY =
55
55
'React::DevTools::appendComponentStack' ;
56
56
57
57
export const LOCAL_STORAGE_SHOW_INLINE_WARNINGS_AND_ERRORS_KEY =
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import {
20
20
COMPACT_LINE_HEIGHT ,
21
21
LOCAL_STORAGE_PARSE_HOOK_NAMES_KEY ,
22
22
LOCAL_STORAGE_SHOULD_BREAK_ON_CONSOLE_ERRORS ,
23
- LOCAL_STORAGE_SHOULD_PATCH_CONSOLE_KEY ,
23
+ LOCAL_STORAGE_SHOULD_APPEND_COMPONENT_STACK_KEY ,
24
24
LOCAL_STORAGE_TRACE_UPDATES_ENABLED_KEY ,
25
25
LOCAL_STORAGE_SHOW_INLINE_WARNINGS_AND_ERRORS_KEY ,
26
26
LOCAL_STORAGE_HIDE_CONSOLE_LOGS_IN_STRICT_MODE ,
@@ -117,7 +117,7 @@ function SettingsContextController({
117
117
appendComponentStack ,
118
118
setAppendComponentStack ,
119
119
] = useLocalStorageWithLog < boolean > (
120
- LOCAL_STORAGE_SHOULD_PATCH_CONSOLE_KEY ,
120
+ LOCAL_STORAGE_SHOULD_APPEND_COMPONENT_STACK_KEY ,
121
121
true ,
122
122
) ;
123
123
const [
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ import {
40
40
LOCAL_STORAGE_FILTER_PREFERENCES_KEY ,
41
41
LOCAL_STORAGE_OPEN_IN_EDITOR_URL ,
42
42
LOCAL_STORAGE_SHOULD_BREAK_ON_CONSOLE_ERRORS ,
43
- LOCAL_STORAGE_SHOULD_PATCH_CONSOLE_KEY ,
43
+ LOCAL_STORAGE_SHOULD_APPEND_COMPONENT_STACK_KEY ,
44
44
LOCAL_STORAGE_SHOW_INLINE_WARNINGS_AND_ERRORS_KEY ,
45
45
LOCAL_STORAGE_HIDE_CONSOLE_LOGS_IN_STRICT_MODE ,
46
46
} from './constants' ;
@@ -343,7 +343,7 @@ export function saveComponentFilters(
343
343
344
344
export function getAppendComponentStack ( ) : boolean {
345
345
try {
346
- const raw = localStorageGetItem ( LOCAL_STORAGE_SHOULD_PATCH_CONSOLE_KEY ) ;
346
+ const raw = localStorageGetItem ( LOCAL_STORAGE_SHOULD_APPEND_COMPONENT_STACK_KEY ) ;
347
347
if ( raw != null ) {
348
348
return JSON . parse ( raw ) ;
349
349
}
@@ -353,7 +353,7 @@ export function getAppendComponentStack(): boolean {
353
353
354
354
export function setAppendComponentStack ( value : boolean ) : void {
355
355
localStorageSetItem (
356
- LOCAL_STORAGE_SHOULD_PATCH_CONSOLE_KEY ,
356
+ LOCAL_STORAGE_SHOULD_APPEND_COMPONENT_STACK_KEY ,
357
357
JSON . stringify ( value ) ,
358
358
) ;
359
359
}
You can’t perform that action at this time.
0 commit comments