-
Notifications
You must be signed in to change notification settings - Fork 0
Sample State
DanielGuardado edited this page Jul 26, 2020
·
8 revisions
{
entities: {
users: {
1: {
id: 1,
username: "LitTokLover",
uploadedVideosIds: [94, 234],
likedVideosIds: [20,42],
likedCommentsIds: [39, 67],
followedUsersIds: [12, 23, 14],
},
2: {
id: 2,
username: "Redbull21",
uploadedVideosIds: [4, 54],
likedVideosIds: [1, 4, 56],
likedCommentsIds: [12, 14, 43],
followedUsersIds: [8, 10, 25],
},
3: {
id: 3,
username: "HelloWorld12",
uploadedVideosIds: [50, 51, 56, 89, 90],
likedVideosIds: [4, 54],
likedCommentsIds: [14, 76, 88],
followedUsersIds: [2, 5, 34],
},
videos: {
50: {
id: 50,
description: "Here's a cool video of my cat",
uploaderId: 3,
commentsIds: [10, 12, 13, 15],
viewCount: 35,
attachment: "coolLitTok.mp4",
},
56: {
id: 56,
description: "Here's a cool video of my dog",
uploaderId: 2,
commentsIds: [15, 19, 20, 25],
viewCount: 100,
attachment: "coolerLitTok.mp4"
},
},
comments: {
20: {
id: 20,
body: "wow so cool",
authorId: 3,
videoId: 3,
},
25: {
id: 25,
body: "cool trick",
authorId: 3,
videoId: 20,
},
28: {
id: 28,
body: "Yeah super cool!",
authorId: 4,
videoId: 20,
parentCommentId: 25,
},
},
ui: {
loading: true/false,
modal: true/false,
},
errors: {
login: ["Incorrect account or password"],
loggedOut: ["Log in to LitTok"]
},
session: { currentUserId: 13 }
}