diff --git a/src/redux/index.js b/src/redux/index.js index 73f475a..c645c72 100644 --- a/src/redux/index.js +++ b/src/redux/index.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"; diff --git a/src/redux/store.js b/src/redux/store.js index 627d2da..b135638 100644 --- a/src/redux/store.js +++ b/src/redux/store.js @@ -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(