client/src/store/configureStore.js
changeset 100 6fd752d98933
parent 91 143ff08ec2cc
child 101 e165aa89ac82
--- a/client/src/store/configureStore.js	Tue Jun 27 18:11:40 2017 +0200
+++ b/client/src/store/configureStore.js	Tue Jun 27 18:12:10 2017 +0200
@@ -1,5 +1,6 @@
 import rootReducer from '../reducers';
 import rootAuthSaga from '../sagas/authSaga';
+import rootGroupSaga from '../sagas/groupSaga';
 import networkSaga from '../sagas/networkSaga';
 import { compose, createStore, applyMiddleware } from 'redux';
 import { routerMiddleware } from 'react-router-redux';
@@ -28,12 +29,14 @@
 const defaultState = {
   sessions: Immutable.List([]),
   notes: Immutable.List([]),
+  groups: Immutable.List([]),
   isAuthenticated: false,
   currentUser: null,
   token: '',
   autoSubmit: false,
   login: asyncRequest,
   register: asyncRequest,
+  createGroup: asyncRequest
 };
 
 const immutableTransformConfig = {
@@ -77,6 +80,7 @@
   }
 
   saga.run(rootAuthSaga, context);
+  saga.run(rootGroupSaga, context);
 
   store.dispatch(offlineConfigInitialized({ client: apiClient }))