From 45fb3acd72b40b08534cef4e626fde3e5a84baa1 Mon Sep 17 00:00:00 2001 From: Tianyu Yao Date: Wed, 17 Aug 2022 18:23:03 -0700 Subject: [PATCH] don't highlight on selection --- packages/react-devtools-core/src/backend.js | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/packages/react-devtools-core/src/backend.js b/packages/react-devtools-core/src/backend.js index b63cd13006e3d..e26ee51977d86 100644 --- a/packages/react-devtools-core/src/backend.js +++ b/packages/react-devtools-core/src/backend.js @@ -131,21 +131,6 @@ export function connectToDevTools(options: ?ConnectOptions) { } }, }); - bridge.addListener( - 'inspectElement', - ({id, rendererID}: {id: number, rendererID: number, ...}) => { - const renderer = agent.rendererInterfaces[rendererID]; - if (renderer != null) { - // Send event for RN to highlight. - const nodes: ?Array = renderer.findNativeNodesForFiberID( - id, - ); - if (nodes != null && nodes[0] != null) { - agent.emit('showNativeHighlight', nodes[0]); - } - } - }, - ); bridge.addListener( 'updateComponentFilters', (componentFilters: Array) => {