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

Function incrementCount

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

Source from the content-addressed store, hash-verified

138}
139
140export 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
156export function decrementCount(id, index) {
157 return dispatch => {

Callers 1

onIncrementMethod · 0.90

Calls 2

incrementFunction · 0.85
makeTopicRequestFunction · 0.85

Tested by

no test coverage detected