diff --git a/frontend/src/redux-router/configureStore.js b/frontend/src/redux-router/configureStore.js index 16e62ec..434bfe7 100644 --- a/frontend/src/redux-router/configureStore.js +++ b/frontend/src/redux-router/configureStore.js @@ -1,7 +1,6 @@ // https://github.com/supasate/connected-react-router // configureStore.js - import { createBrowserHistory } from 'history' import { applyMiddleware, compose, createStore } from 'redux' import { routerMiddleware } from 'connected-react-router' @@ -10,8 +9,7 @@ import { apiSlice } from '../features/api/apiSlice' import thunk from 'redux-thunk'; -import { apiSlice } from '../features/api/apiSlice' - +export const history = createBrowserHistory() export default function configureStore(preloadedState) { const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose; @@ -27,6 +25,6 @@ export default function configureStore(preloadedState) { ), ), ) - + return store } \ No newline at end of file