You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
619 B
16 lines
619 B
![]()
8 years ago
|
import { createStore, applyMiddleware, compose } from 'redux';
|
||
![]()
8 years ago
|
import thunk from 'redux-thunk';
|
||
|
import appReducer from '../reducers';
|
||
![]()
8 years ago
|
import loadingBarMiddleware from '../middleware/loading_bar';
|
||
![]()
8 years ago
|
import errorsMiddleware from '../middleware/errors';
|
||
![]()
8 years ago
|
import soundsMiddleware from '../middleware/sounds';
|
||
![]()
8 years ago
|
|
||
![]()
8 years ago
|
export default function configureStore() {
|
||
![]()
8 years ago
|
return createStore(appReducer, compose(applyMiddleware(
|
||
|
thunk,
|
||
|
loadingBarMiddleware({ promiseTypeSuffixes: ['REQUEST', 'SUCCESS', 'FAIL'] }),
|
||
|
errorsMiddleware(),
|
||
![]()
8 years ago
|
soundsMiddleware()
|
||
![]()
8 years ago
|
), window.devToolsExtension ? window.devToolsExtension() : f => f));
|
||
![]()
8 years ago
|
};
|