UNPKG

activator-oce-exporter

Version:

Extract Activator binder and convert it to valid OCE mono pacakge

33 lines (27 loc) 1.18 kB
import { createStore, compose as origCompose, applyMiddleware, combineReducers, } from 'redux'; import thunk from 'redux-thunk'; import { lazyReducerEnhancer } from 'pwa-helpers/lazy-reducer-enhancer.js'; import app from './fusion/_reducers/app.js'; import levels from './fusion/_reducers/levels.js'; import veevaData from './fusion/_reducers/veeva-data.js'; // Sets up a Chrome extension for time travel debugging. // See https://github.com/zalmoxisus/redux-devtools-extension for more information. // eslint-disable-next-line const compose = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || origCompose; // Initializes the Redux store with a lazyReducerEnhancer (so that you can // lazily add reducers after the store has been created) and redux-thunk (so // that you can dispatch async actions). See the "Redux and state management" // section of the wiki for more details: // https://github.com/Polymer/pwa-starter-kit/wiki/4.-Redux-and-state-management export const store = createStore( state => state, compose(lazyReducerEnhancer(combineReducers), applyMiddleware(thunk)), ); // Initially loaded reducers. store.addReducers({ app, levels, veevaData, });