Sample State - melflynn/BarkedIn GitHub Wiki
{
entities: {
users: {
1: {
id: 1,
firstName: "Melissa",
lastName: "Flynn",
email: "[email protected]",
jobTitle: "Full Stack Engineer",
country: "United States",
region: "San Francisco, CA",
aboutMe: "The author of this app",
connections: [2],
posts: [1],
comments: [2],
reactions: [1],
userSkills: [2]
},
2: {
id: 2,
firstName: "Joe",
lastName: "Biden",
email: "[email protected]",
jobTitle: "President of the United States",
location: "Washington, D.C.",
aboutMe: "46th President of the United States",
connections: [1],
posts: [2],
comments: [1],
reactions: [],
userSkills: [1]
}
},
connections: {
1: {
id: 1,
userId: 1,
connectionId: 2
}
},
posts: {
1: {
id: 1,
authorId: 1,
body: "Welcome to my fullstack app!"
},
2: {
id: 2,
authorId: 2,
body: "I'm the president!"
}
},
comments: {
1: {
id: 1,
postId: 1,
authorId: 2,
parentCommentId: null,
body: "Happy to be here!"
},
2: {
id: 2,
postId: 1,
authorId: 1,
parentCommentId: 1,
body: "Happier to have you!"
}
},
reactions: {
1: {
id: 1,
postId: 2,
likerId: 1,
reactionType: "celebrate"
}
},
skills: {
1: {
id: 1,
title: "being president"
},
2: {
id: 2,
title: "building full stack web apps"
}
},
user_skills: {
1: {
id: 1,
userId: 2,
skillId: 1
},
2: {
id: 2,
userId: 1,
skillId: 2
}
}
},
ui: {
loading: true/false,
modal: true/false
},
errors: {
session: ["Please enter your password"],
user: ["User with the given id does not exist"],
},
session: {
currentUserId: 1
}
}