UNPKG

@centreon/react-components

Version:
18 lines (13 loc) 472 B
import { createStore, applyMiddleware } from 'redux'; import { composeWithDevTools } from 'redux-devtools-extension'; import thunk from 'redux-thunk'; import createSagaMiddleware from 'redux-saga'; import reducers from './reducers'; import sagas from './sagas'; const sagaMiddleware = createSagaMiddleware(); const store = createStore( reducers, composeWithDevTools(applyMiddleware(...[thunk, sagaMiddleware])), ); sagaMiddleware.run(sagas); export default store;