MCPcopy Index your code
hub / github.com/reactGo/reactGo / decrementCount

Function decrementCount

app/actions/topics.js:156–169  ·  view source on GitHub ↗
(id, index)

Source from the content-addressed store, hash-verified

154}
155
156export function decrementCount(id, index) {
157 return dispatch => {
158 dispatch(decrement(index));
159 return makeTopicRequest('put', {
160 id: id,
161 isFull: false,
162 isIncrement: false
163 });
164 // do something with the ajax response
165 // You can also dispatch here
166 // E.g.
167 // .then(response => {});
168 };
169}
170
171export function destroyTopic(id, index) {
172 return dispatch => {

Callers 1

onDecrementMethod · 0.90

Calls 2

decrementFunction · 0.85
makeTopicRequestFunction · 0.85

Tested by

no test coverage detected