MCPcopy
hub / github.com/Hashnode/mern-starter / getPost

Function getPost

client/modules/Post/PostReducer.js:34–34  ·  view source on GitHub ↗
(state, cuid)

Source from the content-addressed store, hash-verified

32
33// Get post by cuid
34export const getPost = (state, cuid) => state.posts.data.filter(post => post.cuid === cuid)[0];
35
36// Export Reducer
37export default PostReducer;

Callers 2

mapStateToPropsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected