diff --git a/shells/browser/shared/src/main.js b/shells/browser/shared/src/main.js index d723c4cec2..261c94ccb0 100644 --- a/shells/browser/shared/src/main.js +++ b/shells/browser/shared/src/main.js @@ -87,12 +87,8 @@ function createPanelIfReactLoaded() { // Remember if we should sync the browser DevTools to the React tab. // We'll only do that if user intentionally chooses a different React component. - let lastSelectedID = null; - bridge.addListener('selectElement', ({ id }) => { - if (!hasReactSelectionChanged && lastSelectedID !== id) { - hasReactSelectionChanged = true; - lastSelectedID = id; - } + bridge.addListener('selectElement', () => { + hasReactSelectionChanged = true; }); // This flag lets us tip the Store off early that we expect to be profiling. diff --git a/src/backend/agent.js b/src/backend/agent.js index b097578e90..5c85cd4562 100644 --- a/src/backend/agent.js +++ b/src/backend/agent.js @@ -304,7 +304,7 @@ export default class Agent extends EventEmitter { window.__REACT_DEVTOOLS_GLOBAL_HOOK__.$0 = node; } renderer.selectElement(id); - this._bridge.send('selectElement', { id }); + this._bridge.send('selectElement'); } };