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

Function destroyTopic

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

Source from the content-addressed store, hash-verified

169}
170
171export function destroyTopic(id, index) {
172 return dispatch => {
173 dispatch(destroy(index));
174 return makeTopicRequest('delete', {
175 id: id
176 });
177 // do something with the ajax response
178 // You can also dispatch here
179 // E.g.
180 // .then(response => {});
181 };
182}
183

Callers 1

onDestroyMethod · 0.90

Calls 2

destroyFunction · 0.85
makeTopicRequestFunction · 0.85

Tested by

no test coverage detected