MCPcopy Create free account
hub / github.com/codemistic/Web-Development / deletePost

Function deletePost

project_mern_memories/client/src/actions/posts.js:45–53  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

43};
44
45export const deletePost = (id) => async (dispatch) => {
46 try {
47 await api.deletePost(id);
48
49 dispatch({ type: DELETE, payload: id });
50 } catch (error) {
51 console.log(error.message);
52 }
53};

Callers 1

Post.jsFile · 0.90

Calls 1

logMethod · 0.45

Tested by

no test coverage detected