Skip to content

Commit ce0fdc7

Browse files
tyao1rickhanlonii
authored andcommitted
Stop spamming highlight events when a component is selected (#25448)
1 parent 338ba68 commit ce0fdc7

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

packages/react-devtools-core/src/backend.js

-15
Original file line numberDiff line numberDiff line change
@@ -131,21 +131,6 @@ export function connectToDevTools(options: ?ConnectOptions) {
131131
}
132132
},
133133
});
134-
bridge.addListener(
135-
'inspectElement',
136-
({id, rendererID}: {id: number, rendererID: number, ...}) => {
137-
const renderer = agent.rendererInterfaces[rendererID];
138-
if (renderer != null) {
139-
// Send event for RN to highlight.
140-
const nodes: ?Array<HTMLElement> = renderer.findNativeNodesForFiberID(
141-
id,
142-
);
143-
if (nodes != null && nodes[0] != null) {
144-
agent.emit('showNativeHighlight', nodes[0]);
145-
}
146-
}
147-
},
148-
);
149134
// $FlowFixMe[incompatible-use] found when upgrading Flow
150135
bridge.addListener(
151136
'updateComponentFilters',

0 commit comments

Comments
 (0)