crane-cloud/frontend

View on GitHub
src/redux/store.js

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
import { createStore, applyMiddleware } from "redux";
import { composeWithDevTools } from "redux-devtools-extension";
import thunk from "redux-thunk";
import rootReducer from "./reducers";
import { loadState } from "../helpers/localStorage";

const persistedState = loadState();

export default createStore(
  rootReducer,
  persistedState,
  composeWithDevTools(applyMiddleware(thunk))
);