Skip to content

Commit

Permalink
Allow react-devtools-inline createStore() method to override Store co…
Browse files Browse the repository at this point in the history
…nfig params (#24303)
  • Loading branch information
Brian Vaughn authored and rickhanlonii committed Apr 14, 2022
1 parent 2e9a7bc commit dfff11c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/react-devtools-inline/src/frontend.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,18 @@ 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 {
return new Store(bridge, {
checkBridgeProtocolCompatibility: true,
supportsTraceUpdates: true,
supportsTimeline: true,
supportsNativeInspection: config?.supportsNativeInspection !== false,
supportsNativeInspection: true,
...config,
});
}

Expand Down

0 comments on commit dfff11c

Please sign in to comment.