From e3fbb51db603d6669359c9ff16f5288cf0640c14 Mon Sep 17 00:00:00 2001 From: Moti Zilberman Date: Fri, 3 May 2024 17:33:21 +0100 Subject: [PATCH] [DevTools] Enable inspected element context menu in Fusebox (#28972) ## Summary Enables the inspected element context menu in React Native DevTools (Fusebox). ## How did you test this change? 1. `yarn build` in `react-devtools-fusebox` 2. Copy artifacts to rn-chrome-devtools-frontend 3. Manually test the context menu https://github.com/facebook/react/assets/2246565/b35cc20f-8d67-43b0-b863-7731e10fffac NOTE: The serialised values sometimes expose React internals (e.g. Hook data structures instead of just the values), but that seems to be a problem equally on web, so I'm going for native<->web parity here. --- packages/react-devtools-fusebox/src/frontend.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/react-devtools-fusebox/src/frontend.js b/packages/react-devtools-fusebox/src/frontend.js index 617e9e25a7bd9..9a7a6b9ea90d9 100644 --- a/packages/react-devtools-fusebox/src/frontend.js +++ b/packages/react-devtools-fusebox/src/frontend.js @@ -62,6 +62,7 @@ export function initialize( store={store} showTabBar={true} warnIfLegacyBackendDetected={true} + enabledInspectedElementContextMenu={true} />, ); }