Sample State - owenshaupt/Candidpop GitHub Wiki
{
entities: {
follows: null,
items: {
1: {
id: 1,
sellerId: 11,
description: "Olympus Stylus Zoom 140 35mm",
price: 70.00,
photos: [
{ photoUrl: "rails/active_storage/blobs/salGJuwjgerNgrn2N3ffwdaf7k" }
],
sold: false,
},
2: {
id: 2,
sellerId: 25,
description: "Canon Sure Shot Supreme 35mm",
price: 43.00,
photos: [
{ photoUrl: "rails/active_storage/blobs/salGJuwjgerNgrn2dd2dfgDsm8" }
],
sold: true,
}
},
listItemFollows: {
id: 4,
followee_id: 2,
follower_id: 1
},
userShow: {
first_name: "Owen",
followers: [
{
id: 2
first_name: "Dolly",
last_name: "Shin",
username: "dolly"
},
{
id: 4
first_name: "Alia",
last_name: "Shafi",
username: "alia"
}
],
following: [
{
id: 5
first_name: "Ernest",
last_name: "Man",
username: "ernie"
}
]
},
users: {
2: {
id: 2,
username: "owen",
first_name: "Owen",
last_name: "Haupt",
location: "United States of America",
email: "[email protected]"
},
25: {
id: 25,
username: "elir237",
first_name: "Eli",
last_name: "Ramirez",
location: "United States of America",
email: "[email protected]"
}
}
},
errors: {
follow: ["Cannot follow yourself"],
item: ["Description is required"],
session: ["Incorrect username/password combination"],
user: ["Username is required"]
},
session: {
id: 2
},
ui: {
modal: "following"
}
}