2016-09-21 14:11:42 -08:00
|
|
|
import {createStore, applyMiddleware} from 'redux';
|
|
|
|
|
import thunk from 'redux-thunk';
|
|
|
|
|
import rootReducer from '../reducers/index';
|
|
|
|
|
import effects from '../utils/effects';
|
|
|
|
|
import * as plugins from '../utils/plugins';
|
2017-09-25 03:55:04 -08:00
|
|
|
import writeMiddleware from './write-middleware';
|
2020-01-02 08:49:57 -09:00
|
|
|
import {HyperState, HyperThunkDispatch} from '../hyper';
|
2016-09-21 14:11:42 -08:00
|
|
|
|
2017-09-25 03:55:04 -08:00
|
|
|
export default () =>
|
2020-01-02 08:49:57 -09:00
|
|
|
createStore(
|
|
|
|
|
rootReducer,
|
|
|
|
|
applyMiddleware<HyperThunkDispatch, HyperState>(thunk, plugins.middleware, thunk, writeMiddleware, effects)
|
|
|
|
|
);
|