-
Notifications
You must be signed in to change notification settings - Fork 0
Sample State
Anuj Gupta edited this page Dec 29, 2021
·
5 revisions
{
entities: {
users: {
1: {
id: 1,
username: "helloworld",
email: "helloworld@gmail.com",
},
2: {
id: 2,
username: "johncena",
email: "johncena@gmail.com",
},
3: {
id: 3,
username: "user3",
email: "user3@gmail.com,
}
},
songs: {
1: {
id: 1,
title: "Hello World",
userId: 1,
},
2: {
id: 2,
title: "Duck Song",
userId: 2,
},
3: {
id: 3,
title: "California",
userId: 3,
}
},
comments: {
1: {
id: 1,
content: "Best Song!"
userId: 1,
songId: 1
},
2: {
id: 2,
content: "This beat goes hard!"
userId: 2,
songId: 2
},
3: {
id: 3,
content: "Love this song!",
userId: 3,
songId: 3
}
}
},
ui: {
loading: false,
continuousPlayer: true
}
session: {
currentUserId: 1
},
errors: {
login: ["Incorrect login credentials, try again."],
songForm: ["Title cannot be blank."],
comment: ["Comment cannot be empty."]
}
}