fix connected-react-router
This commit is contained in:
parent
ee15c0150d
commit
6eb178ea39
|
@ -10,6 +10,7 @@
|
|||
"react-css-grid": "^2.0.0-0",
|
||||
"react-dom": "^16.6.3",
|
||||
"react-redux": "^5.1.1",
|
||||
"react-router": "^4.3.1",
|
||||
"react-router-dom": "^4.3.1",
|
||||
"react-scripts": "2.1.1",
|
||||
"redux": "^4.0.1",
|
||||
|
|
|
@ -8,11 +8,13 @@ import getInitialState from '../utils/get-initial-state';
|
|||
const initialState = getInitialState();
|
||||
|
||||
const store = createStore(
|
||||
rootReducer,
|
||||
rootReducer(history),
|
||||
initialState,
|
||||
compose(
|
||||
applyMiddleware(
|
||||
routerMiddleware(history),
|
||||
applyMiddleware(thunk)
|
||||
thunk
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user