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 Apr 8, 2022
1 parent 1f7a901 commit 65f3503
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 65f3503

Please sign in to comment.