Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/Hashnode/mern-starter
/ fetchPost
Function
fetchPost
client/modules/Post/PostActions.js:43–47 ·
view source on GitHub ↗
(cuid)
Source
from the content-addressed store, hash-verified
41
}
42
43
export
function
fetchPost(cuid) {
44
return
(dispatch) => {
45
return
callApi(`posts/${cuid}`).then(res => dispatch(addPost(res.post)));
46
};
47
}
48
49
export
function
deletePost(cuid) {
50
return
{
Callers
1
PostDetailPage.js
File · 0.90
Calls
2
callApi
Function · 0.85
addPost
Function · 0.70
Tested by
no test coverage detected