Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/Hashnode/mern-starter
/ addPost
Function
addPost
client/modules/Post/PostActions.js:9–14 ·
view source on GitHub ↗
(post)
Source
from the content-addressed store, hash-verified
7
8
// Export Actions
9
export
function
addPost(post) {
10
return
{
11
type
: ADD_POST,
12
post,
13
};
14
}
15
16
export
function
addPostRequest(post) {
17
return
(dispatch) => {
Callers
3
PostReducer.spec.js
File · 0.90
addPostRequest
Function · 0.70
fetchPost
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected