Allow react-devtools-inline createStore() method to override Store config params (#24303)
Brian Vaughn committed
Apr 8, 2022 at 08:59 UTC
65f35035a6184865c495934c89477a4d507fba1a
1 file changed
+4
-1
packages/react-devtools-inline/src/frontend.js
+4
-1
@@ -18,7 +18,9 @@ import type {FrontendBridge} from 'react-devtools-shared/src/bridge';
18
import type {Props} from 'react-devtools-shared/src/devtools/views/DevTools';
19
20
type Config = {|
21
+ checkBridgeProtocolCompatibility?: boolean,
22
supportsNativeInspection?: boolean,
23
+ supportsProfiling?: boolean,
24
|};
25
26
export function createStore(bridge: FrontendBridge, config?: Config): Store {
@@ -26,7 +28,8 @@ export function createStore(bridge: FrontendBridge, config?: Config): Store {
28
checkBridgeProtocolCompatibility: true,
29
supportsTraceUpdates: true,
30
supportsTimeline: true,
29
- supportsNativeInspection: config?.supportsNativeInspection !== false,
31
+ supportsNativeInspection: true,
32
+ ...config,
33
});
34
}
35