-
Notifications
You must be signed in to change notification settings - Fork 0
Sample State
aaxzheng edited this page Nov 8, 2018
·
7 revisions
{
entities: {
notes: {
1: {
id: 1,
body: "Do the sheep count sheep when they sleep?",
user_id: 1,
notebook_id: 1
},
2: {
id: 2,
body: “Once upon a time, I dreamt I was a butterfly, fluttering hither and thither, to all intents and
purposes a butterfly. I was conscious only of my happiness as a butterfly, unaware that I was myself.
Soon I awaked, and there I was, veritably myself again. Now I do not know whether I was then a man
dreaming I was a butterfly, or whether I am now a butterfly, dreaming I am a man.”
user_id: 1,
notebook_id: 1
},
3: {
id: 3,
body: "Double check my proposal!",
user_id: 2,
notebook_id: 2
}
},
users: {
1: {
id: 1,
username: "aaronzhe"
},
2: {
id: 2,
username: "thatguyjim"
}
}
notebooks: {
1: {
id: 1,
title: "Showerthoughts",
user_id: 1
},
2: {
id: 2,
title: "AppAcademy Notes",
user_id: 2
}
}
tags: {
1: {
id: 1,
tag: "philosophy",
user_id: 1
},
2: {
id: 2,
tag: "whimsical",
user_id: 1
},
3: {
id: 3,
tag: "coding",
user_id: 2
}
}
note_tags: {
1: {
note_id: 1,
tag_id: 1
},
2: {
note_id: 2,
tag_id: 1
},
3: {
note_id: 2,
tag_id: 2
}
4: {
note_id: 3,
tag_id: 3
}
}
ui: {
loading: true/false
},
errors: {
login: ["Incorrect username/password combination"]
},
session: { currentUserId: 1 }
}