Sample State - npartovi/Destructables GitHub Wiki
{
entities: {
articles: {
1: {
id: 1,
title: "Macbook 2017 Tear Down Guide",
body: "how to dissasemble a macbook",
userId: 2,
favorites: 12,
commentIds: [4,5],
stepIds: [1,2,3],
imageIds: [1,2,3],
videoIds: [1,2,3]
},
},
users: {
1: {
id: 1,
username: "Guest",
email: "[email protected]",
profileImg: "profile_img_url.png",
},
},
comments: {
3: {
id: 3,
body: "Amazing instructions!",
userId: 3,
articleId: 1
}
},
medias: {
3: {
id: 3,
mediaUrl: "step1.png"
articleId: 1
stepId: 2
},
4: {
id: 4,
mediaUrl: "video.mov"
articleId: 2
stepId:5
},
},
},
ui:{
loading: true/false
},
errors:{
loginForm: ["username or password is incorrect"],
articleForm: ["title and description cannot be blank "],
stepForm: ["title and description cannot be blank"],
commentForm: ["comment cannot be blank"]
},
session:{
currentUser: {
id: 1,
username: "guest"
}
}
}