File tree Expand file tree Collapse file tree
packages/react-devtools-shared/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ export type LogEvent =
4141 | { |
4242 + event_name : 'inspect-native-element' ,
4343 | }
44- | { |
44+ | { |
4545 + event_name : 'profiling-start' ,
4646 | } ;
4747
Original file line number Diff line number Diff line change @@ -192,13 +192,10 @@ function ProfilerContextController({children}: Props) {
192192 } ) ;
193193 }
194194
195- const startProfiling = useCallback (
196- ( ) => {
197- logEvent ( { event_name : 'profiling-start' } ) ;
198- store . profilerStore . startProfiling ( ) ;
199- } ,
200- [ store ] ,
201- ) ;
195+ const startProfiling = useCallback ( ( ) => {
196+ logEvent ( { event_name : 'profiling-start' } ) ;
197+ store . profilerStore . startProfiling ( ) ;
198+ } , [ store ] ) ;
202199 const stopProfiling = useCallback ( ( ) => store . profilerStore . stopProfiling ( ) , [
203200 store ,
204201 ] ) ;
You can’t perform that action at this time.
0 commit comments