Sample state - Hitch77/FullStack_IMDb GitHub Wiki
{
entities: {
users: {
"1": {
"id": 1,
"username": "keanupitt",
"email": "[email protected]",
"sessionToken": "AKSDIOWN1N5N1MNA091381",
}
},
movies: {
"3": {
"id": 3,
"title": "Transformers",
"year": "2007",
"filmRating": "PG-13"
"duration": "2hr 24min",
"directorId": "4",
"writerId": "6",
"actorId": "13"
"description": "An ancient struggle between two Cybertronian races, the heroic Autobots and the evil Decepticons, comes to Earth, with a clue to the ultimate power held by a teenager."
}
},
reviews: {
"9": {
"id": 9,
"title": "Michael Bay and explosives man, why?"
"movieId": 42,
"reviewerId": 2,
"body": "title explains it",
"rating": 4
}
},
likes: {
"40": {
"id": 40,
"likerId": 91,
"reviewId": 2
}
}
ui: {
loading: true/false
},
errors: {
login: ["Incorrect username/password combination"],
reviewForm: ["Review body cannot be blank"]
},
session: { currentUserId: 52 }
}