(id, index)
| 138 | } |
| 139 | |
| 140 | export function incrementCount(id, index) { |
| 141 | return dispatch => { |
| 142 | dispatch(increment(index)); |
| 143 | |
| 144 | return makeTopicRequest('put', { |
| 145 | id: id, |
| 146 | isFull: false, |
| 147 | isIncrement: true |
| 148 | }); |
| 149 | // do something with the ajax response |
| 150 | // You can also dispatch here |
| 151 | // E.g. |
| 152 | // .then(response => {}); |
| 153 | }; |
| 154 | } |
| 155 | |
| 156 | export function decrementCount(id, index) { |
| 157 | return dispatch => { |
no test coverage detected