Sha256: fed2a8592436ff531d6f757e6a9e1bbe4cdb1572c96f830b08e25f0bdc96000a
Contents?: true
Size: 518 Bytes
Versions: 43
Compression:
Stored size: 518 Bytes
Contents
import { applyMiddleware, compose, createStore } from 'redux'; import thunkMiddleware from 'redux-thunk'; import rootReducer from './ForemanInventoryUploadReducers'; export default function configureStore(preloadedState) { const middlewares = [thunkMiddleware]; const middlewareEnhancer = applyMiddleware(...middlewares); const enhancers = [middlewareEnhancer]; const composedEnhancers = compose(...enhancers); const store = createStore(rootReducer, preloadedState, composedEnhancers); return store; }
Version data entries
43 entries across 43 versions & 2 rubygems