fix connected-react-router

This commit is contained in:
Sanjay Bhangar 2018-12-08 18:27:19 +02:00
parent ee15c0150d
commit 6eb178ea39
2 changed files with 6 additions and 3 deletions

View File

@ -10,6 +10,7 @@
"react-css-grid": "^2.0.0-0", "react-css-grid": "^2.0.0-0",
"react-dom": "^16.6.3", "react-dom": "^16.6.3",
"react-redux": "^5.1.1", "react-redux": "^5.1.1",
"react-router": "^4.3.1",
"react-router-dom": "^4.3.1", "react-router-dom": "^4.3.1",
"react-scripts": "2.1.1", "react-scripts": "2.1.1",
"redux": "^4.0.1", "redux": "^4.0.1",

View File

@ -8,11 +8,13 @@ import getInitialState from '../utils/get-initial-state';
const initialState = getInitialState(); const initialState = getInitialState();
const store = createStore( const store = createStore(
rootReducer, rootReducer(history),
initialState, initialState,
compose( compose(
applyMiddleware(
routerMiddleware(history), routerMiddleware(history),
applyMiddleware(thunk) thunk
)
) )
); );