Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function configureStore(reducers, subscribers) {
// Starts benchmark controller BEFORE adding the middleware.
if (appConfig.benchmark) {
benchmarkController.startup();
}
const store = createStore(
makeRootReducer(reducers),
getInitialState(),
composeWithDevTools(
applyMiddleware(...[
thunk,
...appConfig.benchmark ? [benchmarkMiddleware] : [],
streams,
logger,
]),
persistState({
key: storeKey,
paths: persistedReducers.getAll(),
})