-
Notifications
You must be signed in to change notification settings - Fork 9
Sample State
ChrisCavs edited this page Jul 5, 2018
·
10 revisions
{
entities: {
users: {
1: {
id: 1,
name: '',
email: '',
image_url: '',
authoredStoryIds: [],
followedUserIds: [],
followedUserStoryIds: [],
followsIds: []
}
}
stories: {
1: {
id: 1,
title: '',
subtitle: '',
body: '',
image_url: '',
author_id: 1,
claps: 20
}
},
comments: {
1: {
id: 1,
authorId: 2,
storyId: 1,
body: '',
claps: 20
}
}
popularStories: []
},
UI: {
loading: true/false,
currentUserId: 1,
modalShow: true/false
},
errors: {
login: ["Incorrect username/password"],
storyForm: ["Body cannot be left blank"]
}
}