Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
56
export
function
deletePostRequest(cuid) {
57
return
(dispatch) => {
58
return
callApi(`posts/${cuid}`,
'delete'
).then(() => dispatch(deletePost(cuid)));
59
};
60
}
Callers
1
PostListPage.js
File · 0.90
Calls
2
callApi
Function · 0.85
deletePost
Function · 0.70
Tested by
no test coverage detected