Fixed production store setup
-import { createStore, applyMiddleware } from "redux";
+import { createStore, applyMiddleware, compose } from "redux";
import thunk from "redux-thunk";
import rootReducer from "../reducers/rootReducer";
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
export default function configureStore() {
- return createStore(
- rootReducer,
- composeEnhancers(
- applyMiddleware(thunk)
- )
- );
+ return createStore(rootReducer, composeEnhancers(applyMiddleware(thunk)));
}
