-
Notifications
You must be signed in to change notification settings - Fork 0
Sample State
Ian-MacLeod edited this page Apr 3, 2018
·
7 revisions
{
entities: {
tracks: {
1: {
id: 1,
title: "Bohemian Rhapsody",
userId: 4,
likes: 1823,
blobUrl: "https://www.example.com/url_slug1",
commentIds: [8, 49, 125]
},
48: {
id: 48,
title: "Juicy",
userId: 82,
likes: 2340,
blobUrl: "https://www.example.com/url_slug2",
commentIds: [204, 592]
}
},
users: {
12: {
id: 12,
username: "xxxlegolasxxx",
profilePictureUrl: "https://www.example.com/profile_pic1.jpg",
trackIds: [124, 29, 302]
},
303: {
id: 303,
username: "mopp298",
profilePictureUrl: "https://www.example.com/profile_pic2.jpg",
trackIds: []
}
},
comments: {
100: {
id: 100,
userId: 23,
trackId: 99,
createdAt: 1522307372,
body: "Great track!"
},
29: {
id: 29,
userId: 21,
trackId: 99,
createdAt: 1522307379,
body: "I hate this!"
}
},
playlists: {
38: {
id: 38,
userId: 8,
title: "Some songs"
tracksByID: [84, 2, 1114, 695]
}
}
},
ui: {
loading: false,
playingTrackId: 82,
filteredTrackIds: [44, 8, 17],
filteredUserIds: [12, 13, 40],
filteredPlaylistIds: []
},
errors: {
login: ["Username can't be blank"],
trackForm: ["Track title can't be blank"]
},
session: {
id: 81,
username: "rudolph_the_great",
profilePictureUrl: "https://www.example.com/profile_pic12.jpg"
}
}