-
Notifications
You must be signed in to change notification settings - Fork 0
Sample State
rayoowoo edited this page Jul 28, 2019
·
11 revisions
{
entities: {
users: {
1: {
id: 1,
email: "testing@gmail.com",
firstName: "Rayoo",
lastName: "Woo",
gender: "male",
profilePicUrl: "randomurl1.com/random",
coverPicUrl: "randomurl2.com/random",
location: "New York",
workplace: "App Academy",
education: "UC Berkeley",
currentCity: "New York",
hometown: "Irvine",
bio: "Hi I am Rayoo",
birthDate = "2001-10-10",
authoredPostIds = [1, 2],
profilePostIds = [1, 2, 3, 4],
likedPostIds = [2, 3],
likedCommentIds = [1],
friendRequestIds = [3, 4]
friendIds = [2]
},
2: {
id: 2,
email: "testing2@gmail.com",
firstName: "John",
lastName: "Doe",
gender: "female",
profilePicUrl: randomurl3.com/random,
coverPicUrl: randomurl4.com/random,
location: "New York",
workplace: "SHIELD",
education: "MIT",
currentCity: "New York",
hometown: "Irvine",
bio: null,
birthDate = "2010-10-18",
authoredPostIds = [3, 4],
profilePostIds = [6, 3, 7, 8],
likedPostIds = [1, 4],
likedCommentIds = [2],
friendRequestIds = [],
friendIds = [1]
},
},
posts: {
1: {
id: 1,
body: "Testing. This is the first post.",
authorId: 2,
userId: 1,
mediaUrl: randomurl5.com/random,
commentIds: [1, 2, 3],
postLikeIds: [2, 3, 4]
},
2: {
id: 2,
body: "random_url.com/aiowoeithwo?woeit=aoewitweoi/",
authorId: 1,
userId: 2,
mediaUrl: randomurl6.com/random,
commentIds: [4],
postLikeIds: [5]
}
},
comments: {
1: {
id: 1,
body: "Commenting on the first post.",
authorId: 3,
postId: 1,
parentCommentId: null,
childCommentIds: [2, 3],
commentLikeIds: [5, 6]
}
},
},
ui: {
loading: true / false
},
errors: {
login: ["invalid username / password"],
signup: ["username already taken"],
posts: ["post body cannot be empty"]
},
session: {
currentUser: {
id: 1,
}
}