From dfff11c8461c2f31e770226f2d7e244523dcc207 Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Fri, 8 Apr 2022 08:59:12 -0400 Subject: [PATCH] Allow react-devtools-inline createStore() method to override Store config params (#24303) --- packages/react-devtools-inline/src/frontend.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/react-devtools-inline/src/frontend.js b/packages/react-devtools-inline/src/frontend.js index 0e90c884667a6..42c820126f285 100644 --- a/packages/react-devtools-inline/src/frontend.js +++ b/packages/react-devtools-inline/src/frontend.js @@ -18,7 +18,9 @@ import type {FrontendBridge} from 'react-devtools-shared/src/bridge'; import type {Props} from 'react-devtools-shared/src/devtools/views/DevTools'; type Config = {| + checkBridgeProtocolCompatibility?: boolean, supportsNativeInspection?: boolean, + supportsProfiling?: boolean, |}; export function createStore(bridge: FrontendBridge, config?: Config): Store { @@ -26,7 +28,8 @@ export function createStore(bridge: FrontendBridge, config?: Config): Store { checkBridgeProtocolCompatibility: true, supportsTraceUpdates: true, supportsTimeline: true, - supportsNativeInspection: config?.supportsNativeInspection !== false, + supportsNativeInspection: true, + ...config, }); }