@@ -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_ENABLE_DOUBLE_LOGGING ,
25
25
} from 'react-devtools-shared/src/constants' ;
26
26
import { useLocalStorage } from '../hooks' ;
27
27
import { BridgeContext } from '../context' ;
@@ -39,7 +39,7 @@ type Context = {|
39
39
// Specified as a separate prop so it can trigger a re-render of FixedSizeList.
40
40
lineHeight : number ,
41
41
42
- enableDoubleLogging : boolean ,
42
+ enableDoubleLogging : boolean ,
43
43
setEnableDoubleLogging : ( value : boolean ) => void ,
44
44
45
45
appendComponentStack : boolean ,
@@ -85,9 +85,12 @@ function SettingsContextController({
85
85
) ;
86
86
87
87
const [
88
- enableDoubleLogging ,
89
- setEnableDoubleLogging ,
90
- ] = useLocalStorage < boolean > ( LOCAL_STORAGE_SHOULD_ENABLE_DOUBLE_LOGGING , false ) ;
88
+ enableDoubleLogging ,
89
+ setEnableDoubleLogging ,
90
+ ] = useLocalStorage < boolean > (
91
+ LOCAL_STORAGE_SHOULD_ENABLE_DOUBLE_LOGGING ,
92
+ false ,
93
+ ) ;
91
94
92
95
const [
93
96
appendComponentStack ,
@@ -157,8 +160,9 @@ function SettingsContextController({
157
160
bridge . send ( 'updateConsolePatchSettings' , {
158
161
appendComponentStack,
159
162
breakOnConsoleErrors,
163
+ enableDoubleLogging,
160
164
} ) ;
161
- } , [ bridge , appendComponentStack , breakOnConsoleErrors ] ) ;
165
+ } , [ bridge , appendComponentStack , breakOnConsoleErrors , enableDoubleLogging ] ) ;
162
166
163
167
useEffect ( ( ) => {
164
168
bridge . send ( 'setTraceUpdatesEnabled' , traceUpdatesEnabled ) ;
0 commit comments