redux-clerk2 2.0.14 → 2.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -95,7 +95,9 @@ var start = exports.start = function start(state, action) {
95
95
  state = state.mergeIn(['instances', action.instance, 'additionalData'], _immutable2.default.fromJS(_extends({}, action.additionalData, {
96
96
  error: false,
97
97
  errorMessage: null,
98
- isSaving: true
98
+ isSaving: true,
99
+ isFetching: false,
100
+ isFetchingSingle: false
99
101
  })));
100
102
  //}
101
103
  return state;
@@ -125,7 +127,9 @@ var start = exports.start = function start(state, action) {
125
127
  map.mergeIn(['instances', action.instance, 'additionalData'], _immutable2.default.fromJS(_extends({}, action.additionalData, {
126
128
  error: false,
127
129
  errorMessage: null,
128
- isSaving: true
130
+ isSaving: true,
131
+ isFetching: false,
132
+ isFetchingSingle: false
129
133
  })));
130
134
  } else {
131
135
  // Optimistically update the record
@@ -62,7 +62,9 @@ var start = exports.start = function start(state, action) {
62
62
  state = state.mergeIn(['instances', action.instance, 'additionalData'], _immutable2.default.fromJS(_extends({}, action.additionalData, {
63
63
  error: false,
64
64
  errorMessage: null,
65
- isSaving: true
65
+ isSaving: true,
66
+ isFetching: false,
67
+ isFetchingSingle: false
66
68
  })));
67
69
 
68
70
  return state;
@@ -102,7 +104,9 @@ var start = exports.start = function start(state, action) {
102
104
  map.mergeIn(['instances', action.instance, 'additionalData'], _immutable2.default.fromJS(_extends({}, action.additionalData, {
103
105
  error: false,
104
106
  errorMessage: null,
105
- isSaving: true
107
+ isSaving: true,
108
+ isFetching: false,
109
+ isFetchingSingle: false
106
110
  })));
107
111
  });
108
112
  }
@@ -29,7 +29,9 @@ var start = exports.start = function start(state, action) {
29
29
  map.mergeIn(['instances', action.instance, 'additionalData'], _immutable2.default.fromJS(_extends({}, action.additionalData, {
30
30
  error: false,
31
31
  errorMessage: null,
32
- isSaving: true
32
+ isSaving: true,
33
+ isFetching: false,
34
+ isFetchingSingle: false
33
35
  })));
34
36
  }
35
37
  });
@@ -63,7 +63,9 @@ var start = exports.start = function start(state, action) {
63
63
  state = state.mergeIn(['instances', action.instance, 'additionalData'], _immutable2.default.fromJS(_extends({}, action.additionalData, {
64
64
  error: false,
65
65
  errorMessage: null,
66
- isDeleting: true
66
+ isDeleting: true,
67
+ isFetching: false,
68
+ isFetchingSingle: false
67
69
  })));
68
70
 
69
71
  return state;
@@ -64,7 +64,9 @@ var start = exports.start = function start(state, action) {
64
64
  state = state.mergeIn(['instances', action.instance, 'additionalData'], _immutable2.default.fromJS(_extends({}, action.additionalData, {
65
65
  error: false,
66
66
  errorMessage: null,
67
- isSaving: true
67
+ isSaving: true,
68
+ isFetching: false,
69
+ isFetchingSingle: false
68
70
  })));
69
71
 
70
72
  return state;
@@ -100,7 +102,9 @@ var start = exports.start = function start(state, action) {
100
102
  map.mergeIn(['instances', action.instance, 'additionalData'], _immutable2.default.fromJS(_extends({}, action.additionalData, {
101
103
  error: false,
102
104
  errorMessage: null,
103
- isSaving: true
105
+ isSaving: true,
106
+ isFetching: false,
107
+ isFetchingSingle: false
104
108
  })));
105
109
  });
106
110
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "redux-clerk2",
3
- "version": "2.0.14",
3
+ "version": "2.0.15",
4
4
  "description": "Redux Clerk handles the async CRUD in your Redux App.",
5
5
  "main": "lib/index.js",
6
6
  "files": [
@@ -81,6 +81,8 @@ export const start = (state, action) => {
81
81
  error: false,
82
82
  errorMessage: null,
83
83
  isSaving: true,
84
+ isFetching: false,
85
+ isFetchingSingle: false,
84
86
  })));
85
87
  //}
86
88
  return state;
@@ -112,6 +114,8 @@ export const start = (state, action) => {
112
114
  error: false,
113
115
  errorMessage: null,
114
116
  isSaving: true,
117
+ isFetching: false,
118
+ isFetchingSingle: false,
115
119
  })));
116
120
 
117
121
  }
@@ -49,6 +49,8 @@ export const start = (state, action) => {
49
49
  error: false,
50
50
  errorMessage: null,
51
51
  isSaving: true,
52
+ isFetching: false,
53
+ isFetchingSingle: false,
52
54
  })));
53
55
 
54
56
  return state;
@@ -89,7 +91,9 @@ export const start = (state, action) => {
89
91
  map.mergeIn(['instances', action.instance, 'additionalData'], Immutable.fromJS(Object.assign({}, action.additionalData, {
90
92
  error: false,
91
93
  errorMessage: null,
92
- isSaving: true
94
+ isSaving: true,
95
+ isFetching: false,
96
+ isFetchingSingle: false,
93
97
  })));
94
98
 
95
99
  })
@@ -17,6 +17,8 @@ export const start = (state, action) => {
17
17
  error: false,
18
18
  errorMessage: null,
19
19
  isSaving: true,
20
+ isFetching: false,
21
+ isFetchingSingle: false,
20
22
  })));
21
23
  }
22
24
  })
@@ -51,7 +51,9 @@ export const start = (state, action) => {
51
51
  state = state.mergeIn(['instances', action.instance, 'additionalData'], Immutable.fromJS(Object.assign({}, action.additionalData, {
52
52
  error: false,
53
53
  errorMessage: null,
54
- isDeleting: true
54
+ isDeleting: true,
55
+ isFetching: false,
56
+ isFetchingSingle: false,
55
57
  })));
56
58
 
57
59
  return state;
@@ -54,7 +54,9 @@ export const start = (state, action) => {
54
54
  state = state.mergeIn(['instances', action.instance, 'additionalData'], Immutable.fromJS(Object.assign({}, action.additionalData, {
55
55
  error: false,
56
56
  errorMessage: null,
57
- isSaving: true
57
+ isSaving: true,
58
+ isFetching: false,
59
+ isFetchingSingle: false,
58
60
  })));
59
61
 
60
62
  return state;
@@ -92,7 +94,9 @@ export const start = (state, action) => {
92
94
  map.mergeIn(['instances', action.instance, 'additionalData'], Immutable.fromJS(Object.assign({}, action.additionalData, {
93
95
  error: false,
94
96
  errorMessage: null,
95
- isSaving: true
97
+ isSaving: true,
98
+ isFetching: false,
99
+ isFetchingSingle: false,
96
100
  })));
97
101
 
98
102
  })