Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
31
export
const
getPosts = state => state.posts.data;
32
33
// Get post by cuid
34
export
const
getPost = (state, cuid) => state.posts.data.filter(post => post.cuid === cuid)[0];
Callers
2
PostListPage.js
File · 0.90
PostReducer.spec.js
File · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected