2018-01-13 02:01:27 +00:00
|
|
|
import { createStore } from 'redux';
|
2019-03-01 04:01:06 +00:00
|
|
|
import createReducers, { defaultState } from 'Store/Actions/createReducers';
|
2018-01-13 02:01:27 +00:00
|
|
|
import middlewares from 'Store/Middleware/middlewares';
|
|
|
|
|
|
|
|
function createAppStore(history) {
|
|
|
|
const appStore = createStore(
|
2019-03-01 04:01:06 +00:00
|
|
|
createReducers(history),
|
2018-01-13 02:01:27 +00:00
|
|
|
defaultState,
|
|
|
|
middlewares(history)
|
|
|
|
);
|
|
|
|
|
|
|
|
return appStore;
|
|
|
|
}
|
|
|
|
|
|
|
|
export default createAppStore;
|