equal
deleted
inserted
replaced
14 import UserRecord from './userRecord'; |
14 import UserRecord from './userRecord'; |
15 import APIClient from '../api/APIClient'; |
15 import APIClient from '../api/APIClient'; |
16 import createEffect from '../api'; |
16 import createEffect from '../api'; |
17 import config from '../config'; |
17 import config from '../config'; |
18 import { offlineConfigInitialized } from '../actions/networkActions'; |
18 import { offlineConfigInitialized } from '../actions/networkActions'; |
|
19 import asyncRequest from '../constants/asyncRequest'; |
19 |
20 |
20 // const composeEnhancers = (process.env.NODE_ENV !== 'production' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__) ? |
21 // const composeEnhancers = (process.env.NODE_ENV !== 'production' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__) ? |
21 // window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({ |
22 // window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({ |
22 // shouldHotReload: false, |
23 // shouldHotReload: false, |
23 // }) : compose; |
24 // }) : compose; |
29 notes: Immutable.List([]), |
30 notes: Immutable.List([]), |
30 isAuthenticated: false, |
31 isAuthenticated: false, |
31 currentUser: null, |
32 currentUser: null, |
32 token: '', |
33 token: '', |
33 autoSubmit: false, |
34 autoSubmit: false, |
34 login: Immutable.Map({ |
35 login: asyncRequest, |
35 loading: false, |
36 register: asyncRequest, |
36 success: false, |
|
37 error: false, |
|
38 errorMessages: Immutable.Map({}) |
|
39 }), |
|
40 register: Immutable.Map({ |
|
41 loading: false, |
|
42 success: false, |
|
43 error: false, |
|
44 errorMessages: Immutable.Map({}) |
|
45 }), |
|
46 }; |
37 }; |
47 |
38 |
48 const immutableTransformConfig = { |
39 const immutableTransformConfig = { |
49 records: [NoteRecord, SessionRecord, UserRecord], |
40 records: [NoteRecord, SessionRecord, UserRecord], |
50 whitelist: ['sessions', 'notes', 'currentUser'] |
41 whitelist: ['sessions', 'notes', 'currentUser'] |