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-0.9.7 webpack/stories/configureStore.js
foreman_rh_cloud-1.0.7 webpack/stories/configureStore.js
foreman_rh_cloud-0.9.6 webpack/stories/configureStore.js
foreman_rh_cloud-1.0.6 webpack/stories/configureStore.js
foreman_rh_cloud-0.9.5 webpack/stories/configureStore.js
foreman_rh_cloud-1.0.5 webpack/stories/configureStore.js
foreman_rh_cloud-0.9.4.1 webpack/stories/configureStore.js
foreman_rh_cloud-1.0.4.1 webpack/stories/configureStore.js
foreman_rh_cloud-1.0.4 webpack/stories/configureStore.js
foreman_rh_cloud-0.9.4 webpack/stories/configureStore.js
foreman_inventory_upload-1.0.3 webpack/stories/configureStore.js
foreman_inventory_upload-0.9.2 webpack/stories/configureStore.js
foreman_inventory_upload-1.0.2 webpack/stories/configureStore.js
foreman_inventory_upload-0.9.1 webpack/stories/configureStore.js
foreman_inventory_upload-1.0.1 webpack/stories/configureStore.js
foreman_inventory_upload-0.9.0 webpack/stories/configureStore.js
foreman_inventory_upload-1.0.0 webpack/stories/configureStore.js
foreman_inventory_upload-1.0.0.beta7 webpack/stories/configureStore.js
foreman_inventory_upload-1.0.0.beta6 webpack/stories/configureStore.js
foreman_inventory_upload-1.0.0.beta5 webpack/stories/configureStore.js