{"size": 471, "ext": "js", "max_stars_repo_path": "client/src/redux/store.js", "max_stars_repo_name": "abdumamdouh/distributed-online-marketplace-system", "max_stars_repo_stars_event_min_datetime": "2022-02-08T10:11:39.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-08T10:11:39.000Z", "max_issues_repo_path": "client/src/redux/store.js", "max_issues_repo_name": "abdumamdouh/distributed-online-marketplace-system", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "client/src/redux/store.js", "max_forks_repo_name": "abdumamdouh/distributed-online-marketplace-system", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 27.7058823529, "max_line_length": 63, "alphanum_fraction": 0.7643312102}
import { createStore, applyMiddleware } from 'redux';
import { persistStore } from 'redux-persist';
import { composeWithDevTools } from 'redux-devtools-extension';
import thunk from 'redux-thunk';
import logger from "./middleware/logger";

import rootReducer from './rootReducer';

const middleware = [thunk,logger];

export const store = createStore(
  rootReducer,
  composeWithDevTools(applyMiddleware(...middleware))
);

export const persistor = persistStore(store);
