Sample State - alex-ciminillo/freeBook GitHub Wiki
{
entities: {
posts: {
1: {
id: 1,
body: "Today will be great!",
authorId: 17,
},
2: {
id: 2,
body: "Just chillin at home",
authorId: 21,
},
3: {
id: 3,
body: "Going out for coffee with my friends!",
authorId: 21,
}
},
users: {
11: {
id: 17,
email: "[email protected]",
},
25: {
id: 21,
email: "[email protected]",
imgUrl: "https://www.pngkit.com/png/detail/80-806788_confused-man-cartoon-confused-cartoon-person.png"
}
},
likes: {
1: {
id: 1,
userId: 2,
postId: 1
}
}
},
ui: {
loading: true/false,
modal: true/false
},
errors: {
login: ["Incorrect username/password combination"],
postForm: ["Post body cannot be blank"],
},
session: { currentUserId: 25 }
}