diff -r 03334a31130a -r 4b780ebbedc6 client/src/reducers/index.js --- a/client/src/reducers/index.js Thu Nov 08 16:03:28 2018 +0100 +++ b/client/src/reducers/index.js Tue Nov 13 16:46:15 2018 +0100 @@ -1,4 +1,5 @@ import { combineReducers } from 'redux'; +import { connectRouter } from 'connected-react-router'; import notes from './notesReducer'; import { sessions } from './sessionsReducer'; @@ -7,7 +8,8 @@ import { isSynchronizing, lastSync } from './syncReducer'; -const rootReducer = combineReducers({ +export default (history, wrapper) => wrapper(combineReducers({ + router: connectRouter(history), sessions, notes, login, @@ -27,7 +29,4 @@ autoSubmit, groups, createGroup, -}); - - -export default rootReducer; +}));