client/src/reducers/index.js
changeset 172 4b780ebbedc6
parent 168 ea92f4fe783d
--- 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;
+}));