-
Notifications
You must be signed in to change notification settings - Fork 2
sample state
Tim Bedford edited this page Nov 10, 2020
·
1 revision
{
entities: {
tracks: {
1: {
id: 1,
title: "lalala",
uploaderId: 5,
},
2: {
id: 2,
track: "boom",
uploaderId: 6,
},
3: {
id: 3,
title: "uh oh",
uploaderId: 6,
}
},
users: {
5: {
id: 5,
username: "timbedford",
},
6: {
id: 6,
username: "janedoe"
}
},
likes: {
1: {
id: 1,
userId: 1,
trackId: 2
},
2: {
id: 2,
userId: 1,
trackId: 3
}
},
reposts: {
1: {
id: 1,
userId: 1,
trackId: 2
}
}
},
errors: {
login: ["Password is too short (must be at least 6 characters"],
trackUpload: ["Title is missing, "Audio file is too large"],
addTrackToPlaylist: ["Track already belongs to current playlist"]
},
ui: {
tracksPerPage: 10,
loading: true
}
session: {
currentUserId: 5,
loggedIn: true
}
}