import thunk from "redux-thunk" ; import { createArenaStore } from "redux-arena" ; import saga from "./frame/redux/saga" ; import reducer from "./frame/redux/reducer" ; import state from "./frame/redux/state" ; let middlewares = [ thunk ] ; export default function configureStore ( history ) { let store = createArenaStore ( { frame : reducer } , { initialStates : { frame : state } , middlewares } ) ; store . runSaga ( saga ) ; return store ; }