MCPcopy
hub / github.com/Hashnode/mern-starter / deletePostRequest

Function deletePostRequest

client/modules/Post/PostActions.js:56–60  ·  view source on GitHub ↗
(cuid)

Source from the content-addressed store, hash-verified

54}
55
56export function deletePostRequest(cuid) {
57 return (dispatch) => {
58 return callApi(`posts/${cuid}`, 'delete').then(() => dispatch(deletePost(cuid)));
59 };
60}

Callers 1

PostListPage.jsFile · 0.90

Calls 2

callApiFunction · 0.85
deletePostFunction · 0.70

Tested by

no test coverage detected