-
Notifications
You must be signed in to change notification settings - Fork 4
Sample State
joshkohane edited this page Dec 22, 2020
·
6 revisions
{
entities: {
users: {
1: {
id: 1,
username: "iamademo",
age: 20,
subheading: "",
location: "",
},
2: {
id: 2,
username: "thisisforpractice",
age: 39,
}
},
dreams: {
1: {
id: 1,
userId: 1,
text: "Last night I had a dream that all my teeth fell out",
tags: [1, 2],
type: "dream"
},
2: {
id: 2,
userId: 2,
text: "I want to become a software engineer",
tags: [1],
type: "goal"
}
},
comments: {
1: {
id: 1,
userId: 1,
dreamId: 1,
comment: "I totally had this dream too!"
},
2: {
id: 2,
userId: 2,
dreamId: 2,
comment: "That's a pretty crazy dream."
}
},
friends: {
1: {
id: 1,
userId: 1,
friendId: 1
},
2: {
id: 2,
userId: 2,
friendId: 2
}
},
likes: {
1: {
id: 1,
dreamId: 1,
likerId: 1
},
2: {
id: 2,
dreamId: 2,
likerId: 2
}
},
tags: {
1: {
id: 1,
tag: 'Love'
},
2: {
id: 2,
tag: 'Death'
}
}
},
ui: { modal: true/false },
errors: {
sessionErrors: ["Invalid username/password"],
dreamErrors: ["Dream must be between 2 and 140 characters"]
},
session: { currentUser: 1 }
}