mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-14 09:48:10 -05:00
Update configureStore.js
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
// https://github.com/supasate/connected-react-router
|
// https://github.com/supasate/connected-react-router
|
||||||
// configureStore.js
|
// configureStore.js
|
||||||
|
|
||||||
|
|
||||||
import { createBrowserHistory } from 'history'
|
import { createBrowserHistory } from 'history'
|
||||||
import { applyMiddleware, compose, createStore } from 'redux'
|
import { applyMiddleware, compose, createStore } from 'redux'
|
||||||
import { routerMiddleware } from 'connected-react-router'
|
import { routerMiddleware } from 'connected-react-router'
|
||||||
@@ -10,8 +9,7 @@ import { apiSlice } from '../features/api/apiSlice'
|
|||||||
|
|
||||||
import thunk from 'redux-thunk';
|
import thunk from 'redux-thunk';
|
||||||
|
|
||||||
import { apiSlice } from '../features/api/apiSlice'
|
export const history = createBrowserHistory()
|
||||||
|
|
||||||
|
|
||||||
export default function configureStore(preloadedState) {
|
export default function configureStore(preloadedState) {
|
||||||
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
|
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
|
||||||
@@ -27,6 +25,6 @@ export default function configureStore(preloadedState) {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
return store
|
return store
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user