Skip to content

Commit 65f3503

Browse files
author
Brian Vaughn
authored
Allow react-devtools-inline createStore() method to override Store config params (#24303)
1 parent 1f7a901 commit 65f3503

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/react-devtools-inline/src/frontend.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,18 @@ import type {FrontendBridge} from 'react-devtools-shared/src/bridge';
1818
import type {Props} from 'react-devtools-shared/src/devtools/views/DevTools';
1919

2020
type Config = {|
21+
checkBridgeProtocolCompatibility?: boolean,
2122
supportsNativeInspection?: boolean,
23+
supportsProfiling?: boolean,
2224
|};
2325

2426
export function createStore(bridge: FrontendBridge, config?: Config): Store {
2527
return new Store(bridge, {
2628
checkBridgeProtocolCompatibility: true,
2729
supportsTraceUpdates: true,
2830
supportsTimeline: true,
29-
supportsNativeInspection: config?.supportsNativeInspection !== false,
31+
supportsNativeInspection: true,
32+
...config,
3033
});
3134
}
3235

0 commit comments

Comments
 (0)