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

Function getPosts

client/modules/Post/PostReducer.js:31–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29
30// Get all posts
31export const getPosts = state => state.posts.data;
32
33// Get post by cuid
34export const getPost = (state, cuid) => state.posts.data.filter(post => post.cuid === cuid)[0];

Callers 2

PostListPage.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected