-
Notifications
You must be signed in to change notification settings - Fork 0
Sample state
shiwen1209 edited this page Jul 8, 2022
·
14 revisions
{
entities: {
users: {
11: {
id: 11,
username: "blue_macaw",
title: "Director",
location: "New York, NY",
about: "a very driven individual"
},
},
experiences: {
11: {
id: 68,
userId: 11,
startDate: 2022/01/01,
endDate: 2022/07/01,
position: "Intern",
company: "Google"
},
},
educations: {
1: {
id: 6,
userId: 11,
startDate: 2022/01/01,
endDate: 2022/07/01,
degree: "Bachelor of Science",
school: "Some University"
},
},
connections: {
110: {
id: 100,
user1: 11,
user2: 22
},
},
posts: {
1: {
id: 1,
body: "bluebirds like blueberries",
authorId: 11,
date: 2022/06/22
}
},
comments: {
1: {
id: 1,
body: "bluebirds like blueberries",
authorId: 11,
}
},
postLikes: {
1: {
id: 1,
userId: 2,
postId: 1
}
},
commentLikes: {
1: {
id: 1,
userId: 2,
commentId: 1
}
},
messages: {
1: {
id: 1,
fromUserId: 2,
toUserId: 3,
title: "are you interested",
body: "create opportunity for you"
}
}
},
ui: {
loading: true/false,
modal: true/false
},
errors: {
login: ["Incorrect username/password combination"],
profileForm: ["body cannot be blank"],
},
session: { currentUserId: 25 }
}