Sample State
HelloPancake edited this page Mar 26, 2019
·
3 revisions
{
entities: {
users: {
1: {
id: 1,
username: 'Jack',
email: 'jack@gmail.com',
authoredPostIds: [...],
authoredComments: [...],
likedPostIds: [...],
profilePicUrl: 'image.com',
},
},
posts: {
7: {
id: #,
authorId: #,
body: 'hello',
likedIds: [...],
commentIds: [...],
},
comments: {
10: {
id: #,
postId: #,
authorId: #,
body: '...',
},
},
errors: {
session: ["Invalid Password/Username"]
},
session: {
currentUserId: 4
}
},