@@ -31,7 +31,7 @@ import ComponentSearchInput from './ComponentSearchInput';
31
31
import SettingsModalContextToggle from 'react-devtools-shared/src/devtools/views/Settings/SettingsModalContextToggle' ;
32
32
import SelectedTreeHighlight from './SelectedTreeHighlight' ;
33
33
import TreeFocusedContext from './TreeFocusedContext' ;
34
- import { useHighlightNativeElement , useSubscription } from '../hooks' ;
34
+ import { useHighlightHostInstance , useSubscription } from '../hooks' ;
35
35
import { clearErrorsAndWarnings as clearErrorsAndWarningsAPI } from 'react-devtools-shared/src/backendAPI' ;
36
36
import styles from './Tree.css' ;
37
37
import ButtonIcon from '../ButtonIcon' ;
@@ -66,8 +66,8 @@ export default function Tree(props: Props): React.Node {
66
66
const { hideSettings} = useContext ( OptionsContext ) ;
67
67
const [ isNavigatingWithKeyboard , setIsNavigatingWithKeyboard ] =
68
68
useState ( false ) ;
69
- const { highlightHostInstance, clearHighlightNativeElement } =
70
- useHighlightNativeElement ( ) ;
69
+ const { highlightHostInstance, clearHighlightHostInstance } =
70
+ useHighlightHostInstance ( ) ;
71
71
const treeRef = useRef < HTMLDivElement | null > ( null ) ;
72
72
const focusTargetRef = useRef < HTMLDivElement | null > ( null ) ;
73
73
@@ -258,7 +258,7 @@ export default function Tree(props: Props): React.Node {
258
258
if ( selectedElementID !== null ) {
259
259
highlightHostInstance ( selectedElementID ) ;
260
260
} else {
261
- clearHighlightNativeElement ( ) ;
261
+ clearHighlightHostInstance ( ) ;
262
262
}
263
263
}
264
264
} , [
@@ -288,7 +288,7 @@ export default function Tree(props: Props): React.Node {
288
288
setIsNavigatingWithKeyboard ( false ) ;
289
289
} , [ ] ) ;
290
290
291
- const handleMouseLeave = clearHighlightNativeElement ;
291
+ const handleMouseLeave = clearHighlightHostInstance ;
292
292
293
293
// Let react-window know to re-render any time the underlying tree data changes.
294
294
// This includes the owner context, since it controls a filtered view of the tree.
0 commit comments