update src/redux/index.js and store.js

master
mahdi 3 years ago
parent ccd8c459ba
commit edba403e4f
  1. 2
      src/redux/index.js
  2. 8
      src/redux/store.js

@ -1,3 +1,3 @@
export { default as actions } from "./actions";
export { default as reducers } from "./reducers";
export { default as store } from "./store.js";
export { default as reducers } from "./reducers";

@ -1,9 +1,11 @@
import { createStore, applyMiddleware } from "redux";
import thunk from "redux-thunk";
import { createStore, applyMiddleware, combineReducers } from "redux";
import { composeWithDevTools } from "redux-devtools-extension";
import { combineReducers } from "redux";
import thunk from "redux-thunk";
import * as reducers from "./reducers";
import { persistStore, persistReducer } from "redux-persist";
import storage from "redux-persist/lib/storage"; // defaults to localStorage for web
const initialState = {};
const middleware = [thunk];
const store = createStore(

Loading…
Cancel
Save