import { createStore, applyMiddleware } from "redux"; import { enableBatching } from 'redux-batched-actions'; import thunk from "redux-thunk"; import reducers from "./reducers"; import { init } from './authPersistor' const store = createStore(enableBatching(reducers), applyMiddleware(thunk)); init(store) export default store;