Sample State Shape
{
entities: {
users: {
1: {
id: 1,
email: "[email protected]",
mediaIds: [1,2]
}
},
media: {
1: {
id: 1,
title: "Avengers: Infinity War",
description: "An unprecedented cinematic journey ten years in the making and spanning the entire Marvel Cinematic Universe, Marvel Studios' Avengers: Infinity War brings to the screen the ultimate, deadliest showdown of all time: Thanos vs. the Avengers.",
type: "movie",
duration: 149,
maturityRating: "PG-13",
year: 2018,
genreIds: [1,2,5]
},
2: {
id: 2,
title: "Avengers: Endgame",
description: "The grave course of events set in motion by Thanos that wiped out half the universe and fractured the Avengers ranks compels the remaining Avengers to take one final stand in Marvel Studios' grand conclusion to twenty-two films, Avengers: Endgame.",
type: "movie",
duration: 181,
maturityRating: "PG-13",
year: 2019,
genreIds: [1,2,5]
},
3: {
id: 3,
title: "Spider-Man: Far From Home",
description: "Peter Parker returns in Spider-Man: Far From Home, the next chapter of the Spider-Man: Homecoming series! Our friendly neighborhood Super Hero decides to join his best friends Ned, MJ, and the rest of the gang on a European vacation. However, Peter's plan to leave super heroics behind for a few weeks are quickly scrapped when he begrudgingly agrees to help Nick Fury uncover the mystery of several elemental creature attacks, creating havoc across the continent!",
type: "movie",
duration: 129,
maturityRating: "PG-13",
year: 2019,
genreIds: [1,3,5]
},
},
genres: {
1: {
id: 1,
name: "action",
mediaIds: [1,2,3]
},
2: {
id: 2,
name: "adventure",
mediaIds: [1,2]
},
3: {
id: 3,
name: "comedy",
mediaIds: [3]
},
4: {
id: 4,
name: "thriller"
mediaIds: []
},
5: {
id: 5,
name: "sci-fi",
mediaIds: [1,2,3]
},
6: {
id: 6,
name: "animated",
mediaIds: []
},
7: {
id: 7,
name: "western",
mediaIds: []
},
8: {
id: 8,
name: "romance",
mediaIds: []
}
}
},
ui: {
loading: true/false
},
errors: {
login: ["Invalid username/password credentials"],
signUp: ["Password must be at least 7 characters long"]
},
session: {
currentUserId: 1
}
}