-
Notifications
You must be signed in to change notification settings - Fork 0
sample state
Dan edited this page Jan 6, 2020
·
2 revisions
{
entities: {
pictures: {
1: {
id: 1,
title: "baby girl nursery",
description: "Pink garden",
imageUrl: "/assets/baby_nursery_pink.svg",
categoryId: 1,
},
2: {
id: 2,
title: "baby finger veggies",
description: "",
imageUrl: "/assets/baby_finger_veggies.svg",
categoryId: 2,
},
3: {
id: 3,
title: "baby boy nursery",
description: "Blue ocean",
imageUrl: "/assets/baby_nursery_blue.svg",
categoryId: 1,
}
},
categories: {
1: {
id: 1,
title: "Baby Nursery",
pictureIds: [2, 4]
}
}
users: {
11: {
id: 11,
username: "blue_macaw",
board_ids: [1, 2],
},
25: {
id: 25,
username: "blue_toucan",
board_ids: [2],
imgUrl: "https://cdn.pixabay.com/photo/2015/10/01/16/43/toucan-967334_960_720.jpg"
}
},
boards: {
1: {
id: 1,
title: "Meals To prepare for Francis",
pictureIds: [2, 4]
}
}
pictureFavorites: {
10: {
favoriteId: 10,
pictureId: 1,
}
},
categoryFollows: {
11: {
followId: 11,
categoryId: 1,
}
}
},
ui: {
loading: true/false
},
errors: {
loginErrors: ["Incorrect credentials"],
searchErrors: ["No results found"],
},
session: { currentUserId: 25 }
}