@@ -63,7 +63,7 @@ import {
63
63
TREE_OPERATION_UPDATE_ERRORS_OR_WARNINGS ,
64
64
TREE_OPERATION_UPDATE_TREE_BASE_DURATION ,
65
65
} from '../constants' ;
66
- import { HooksNode , inspectHooksOfFiber } from 'react-debug-tools' ;
66
+ import { inspectHooksOfFiber } from 'react-debug-tools' ;
67
67
import {
68
68
patchConsoleUsingWindowValues ,
69
69
registerRenderer as registerRendererWithConsole ,
@@ -96,8 +96,7 @@ import is from 'shared/objectIs';
96
96
import hasOwnProperty from 'shared/hasOwnProperty' ;
97
97
// REPLAY Not doing any profiling work for the foreseeable future, disable this
98
98
// import {createProfilingHooks} from './profilingHooks';
99
-
100
- import type { GetTimelineData , ToggleProfilingStatus } from './profilingHooks' ;
99
+ import type { ToggleProfilingStatus } from './profilingHooks' ;
101
100
import type { Fiber } from 'react-reconciler/src/ReactInternalTypes' ;
102
101
import type {
103
102
ChangeDescription ,
@@ -736,7 +735,6 @@ export function attach(
736
735
} = ReactPriorityLevels ;
737
736
738
737
const {
739
- getLaneLabelMap,
740
738
injectProfilingHooks,
741
739
overrideHookState,
742
740
overrideHookStateDeletePath,
@@ -772,11 +770,12 @@ export function attach(
772
770
} ;
773
771
}
774
772
775
- let getTimelineData : null | GetTimelineData = null ;
776
- let toggleProfilingStatus : null | ToggleProfilingStatus = null ;
777
-
773
+ const toggleProfilingStatus : null | ToggleProfilingStatus = null ;
778
774
// REPLAY Not doing any profiling work for the foreseeable future, disable this
779
775
/*
776
+ let getTimelineData: null | GetTimelineData = null;
777
+
778
+
780
779
if (typeof injectProfilingHooks === 'function') {
781
780
const response = createProfilingHooks({
782
781
getDisplayNameForFiber,
@@ -2485,7 +2484,7 @@ export function attach(
2485
2484
if (
2486
2485
mostRecentlyInspectedElement !== null &&
2487
2486
mostRecentlyInspectedElement . id === id &&
2488
- fiberRenderered
2487
+ fiberRendered
2489
2488
) {
2490
2489
// If this Fiber has updated, clear cached inspected data.
2491
2490
// If it is inspected again, it may need to be re-run to obtain updated hooks values.
@@ -3925,6 +3924,7 @@ export function attach(
3925
3924
prevFiber . memoizedState ,
3926
3925
fiber . memoizedState ,
3927
3926
) ;
3927
+ // eslint-disable-next-line eqeqeq
3928
3928
return indices == null || indices . length == 0 ? [ ] : indices ;
3929
3929
}
3930
3930
return [ ] ;
@@ -4318,7 +4318,7 @@ export function attach(
4318
4318
} ,
4319
4319
) ;
4320
4320
4321
- let timelineData : null = null ;
4321
+ const timelineData : null = null ;
4322
4322
4323
4323
// REPLAY Not doing any profiling work for the foreseeable future, disable this
4324
4324
/*
@@ -4833,7 +4833,6 @@ export function attach(
4833
4833
setTrackedPath ,
4834
4834
shouldFilterFiber ,
4835
4835
startProfiling ,
4836
- shouldFilterFiber ,
4837
4836
stopProfiling ,
4838
4837
storeAsGlobal ,
4839
4838
unpatchConsoleForStrictMode ,
0 commit comments