Clean up
This commit is contained in:
parent
abdda1e8d0
commit
5c7411594f
15 changed files with 5 additions and 64 deletions
|
@ -1,17 +0,0 @@
|
|||
import { createStore, applyMiddleware, compose } from 'redux'
|
||||
import rootReducer from '../reducers/index'
|
||||
import { forbiddenWordsMiddleware } from '../middleware'
|
||||
import createSagaMiddleware from "redux-saga"
|
||||
import apiSaga from "../sagas/api-saga"
|
||||
|
||||
const initialiseSagaMiddleware = createSagaMiddleware()
|
||||
const storeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose
|
||||
|
||||
const store = createStore(
|
||||
rootReducer,
|
||||
storeEnhancers(applyMiddleware(forbiddenWordsMiddleware, initialiseSagaMiddleware))
|
||||
)
|
||||
|
||||
initialiseSagaMiddleware.run(apiSaga)
|
||||
|
||||
export default store
|
Loading…
Add table
Add a link
Reference in a new issue