-
Notifications
You must be signed in to change notification settings - Fork 0
Sample State
Steven Wang edited this page Jan 25, 2018
·
7 revisions
{
entities: {
users: {
1: {
id: 1,
username: "demo",
img_url: "somewebsite.com/image/123",
},
2: {
id: 2,
username: "hello",
img_url: "hello.com/5"
},
3: {
id: 3,
username: "user",
img_url: "avatar.com/image"
}
},
servers: {
1: {
id: 1,
name: "App Academy",
channels: [1, 2, 3]
},
2: {
id: 2,
name: "bananas",
channels: [4, 5, 6]
},
3: {
id: 3,
name: "whoooosh"
channels: [7, 8, 9]
}
},
channels: {
1: {
id: 1,
name: "Twin Peaks",
posts: [1, 2, 3, 4, 5, 6, 8, 9, 10]
},
2: {
id: 2,
name: "Russian Hill",
posts: [11, 12, 13, 14, 15, 16, 18, 19, 20]
},
3: {
id: 3,
name: "Telgraph Hill",
posts: [21, 22, 23, 24, 25, 26, 28, 29, 30]
}
},
posts: {
1: {
id: 1,
author_id: 1,
body: "first post!"
},
2: {
id: 2,
author_id: 5,
body: "where am i?"
},
3: {
id: 3,
author_id: 8,
body: "weeeeeee"
}
}
},
ui: {
loading: true/false,
},
errors: {
login: ["Incorrect username/password combination"],
},
session: {
id: 1,
username: demo,
img_url: "somewebsite.com/image/123"
}
}