@@ -43,7 +43,7 @@ export type Context = {|
43
43
// 1. The selected root in the Components tree (if it has any profiling data) or
44
44
// 2. The first root in the list with profiling data.
45
45
rootID : number | null ,
46
- setRootIDcleanFiber : ( id : number ) => void ,
46
+ setRootIDAndClearFiber : ( id : number ) => void ,
47
47
48
48
// Controls whether commits are filtered by duration.
49
49
// This value is controlled by a filter toggle UI in the Profiler toolbar.
@@ -154,7 +154,7 @@ function ProfilerContextController({children}: Props) {
154
154
[ dispatch , selectFiberID , selectFiberName , store ] ,
155
155
) ;
156
156
157
- const setRootIDcleanFiber = useCallback (
157
+ const setRootIDAndClearFiber = useCallback (
158
158
( id : number | null ) => {
159
159
selectFiber ( null , null ) ;
160
160
setRootID ( id ) ;
@@ -182,9 +182,9 @@ function ProfilerContextController({children}: Props) {
182
182
selectedElementRootID !== null &&
183
183
dataForRoots . has ( selectedElementRootID )
184
184
) {
185
- setRootIDcleanFiber ( selectedElementRootID ) ;
185
+ setRootIDAndClearFiber ( selectedElementRootID ) ;
186
186
} else {
187
- setRootIDcleanFiber ( firstRootID ) ;
187
+ setRootIDAndClearFiber ( firstRootID ) ;
188
188
}
189
189
}
190
190
}
@@ -245,7 +245,7 @@ function ProfilerContextController({children}: Props) {
245
245
supportsProfiling,
246
246
247
247
rootID,
248
- setRootIDcleanFiber ,
248
+ setRootID : setRootIDAndClearFiber ,
249
249
250
250
isCommitFilterEnabled,
251
251
setIsCommitFilterEnabled,
@@ -275,7 +275,8 @@ function ProfilerContextController({children}: Props) {
275
275
supportsProfiling ,
276
276
277
277
rootID ,
278
- setRootIDcleanFiber ,
278
+ setRootID ,
279
+ setRootIDAndClearFiber ,
279
280
280
281
isCommitFilterEnabled ,
281
282
setIsCommitFilterEnabled ,
0 commit comments