Integreate connected-react-router to store url state in redux store #9

Merged
sanj merged 2 commits from feature/connected-react-router into develop 2018-12-08 16:29:32 +00:00
2 changed files with 6 additions and 3 deletions
Showing only changes of commit 6eb178ea39 - Show all commits

View File

@ -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",

View File

@ -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
)
)
);