MCPcopy
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
9export function addPost(post) {
10 return {
11 type: ADD_POST,
12 post,
13 };
14}
15
16export function addPostRequest(post) {
17 return (dispatch) => {

Callers 3

addPostRequestFunction · 0.70
fetchPostFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected