--- a/client/src/store/configureStore.js Mon Jun 26 16:43:22 2017 +0200
+++ b/client/src/store/configureStore.js Mon Jun 26 16:48:52 2017 +0200
@@ -16,6 +16,7 @@
import createEffect from '../api';
import config from '../config';
import { offlineConfigInitialized } from '../actions/networkActions';
+import asyncRequest from '../constants/asyncRequest';
// const composeEnhancers = (process.env.NODE_ENV !== 'production' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__) ?
// window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({
@@ -31,18 +32,8 @@
currentUser: null,
token: '',
autoSubmit: false,
- login: Immutable.Map({
- loading: false,
- success: false,
- error: false,
- errorMessages: Immutable.Map({})
- }),
- register: Immutable.Map({
- loading: false,
- success: false,
- error: false,
- errorMessages: Immutable.Map({})
- }),
+ login: asyncRequest,
+ register: asyncRequest,
};
const immutableTransformConfig = {