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

Version Path
foreman_rh_cloud-1.0.18 webpack/stories/configureStore.js
foreman_rh_cloud-1.0.17 webpack/stories/configureStore.js
foreman_rh_cloud-1.0.16 webpack/stories/configureStore.js
foreman_rh_cloud-1.0.15 webpack/stories/configureStore.js
foreman_rh_cloud-1.0.14 webpack/stories/configureStore.js
foreman_rh_cloud-0.9.14 webpack/stories/configureStore.js
foreman_rh_cloud-0.9.13.1 webpack/stories/configureStore.js
foreman_rh_cloud-1.0.13.1 webpack/stories/configureStore.js
foreman_rh_cloud-0.9.13 webpack/stories/configureStore.js
foreman_rh_cloud-1.0.13 webpack/stories/configureStore.js
foreman_rh_cloud-0.9.12 webpack/stories/configureStore.js
foreman_rh_cloud-1.0.12 webpack/stories/configureStore.js
foreman_rh_cloud-0.9.11 webpack/stories/configureStore.js
foreman_rh_cloud-1.0.11 webpack/stories/configureStore.js
foreman_rh_cloud-0.9.10 webpack/stories/configureStore.js
foreman_rh_cloud-1.0.10 webpack/stories/configureStore.js
foreman_rh_cloud-1.0.9 webpack/stories/configureStore.js
foreman_rh_cloud-0.9.9 webpack/stories/configureStore.js
foreman_rh_cloud-0.9.8 webpack/stories/configureStore.js
foreman_rh_cloud-1.0.8 webpack/stories/configureStore.js