Integreate connected-react-router to store url state in redux store #9
|
@ -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",
|
||||||
|
|
|
@ -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(
|
||||||
routerMiddleware(history),
|
applyMiddleware(
|
||||||
applyMiddleware(thunk)
|
routerMiddleware(history),
|
||||||
|
thunk
|
||||||
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user