client/src/store/configureStore.js
changeset 101 e165aa89ac82
parent 100 6fd752d98933
child 129 d48946d164c6
--- a/client/src/store/configureStore.js	Tue Jun 27 18:12:10 2017 +0200
+++ b/client/src/store/configureStore.js	Wed Jun 28 12:54:48 2017 +0200
@@ -18,6 +18,7 @@
 import config from '../config';
 import { offlineConfigInitialized } from '../actions/networkActions';
 import asyncRequest from '../constants/asyncRequest';
+import * as types from '../constants/actionTypes';
 
 // const composeEnhancers = (process.env.NODE_ENV !== 'production' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__) ?
 //     window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({
@@ -83,6 +84,7 @@
   saga.run(rootGroupSaga, context);
 
   store.dispatch(offlineConfigInitialized({ client: apiClient }))
+  store.dispatch({ type: types.GROUP_LOAD_ASYNC })
 
   return store;
 };