mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-12 08:47:40 -05:00
Update configureStore.js
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user