Sample State
{
entities: {
runs: {
1: {
id: 1,
routeUrl: "https://www.google.com/map1.jpg",
location: "New York",
distance: '6',
duration: '3600'
runnerId: 2,
completed_run: true,
},
2: {
id: 3,
routeUrl: "https://www.google.com/map2.jpg",
location: "Chicago",
distance: '3',
duration: '1800'
runnerId: 2,
completed_run: true,
},
3: {
id: 3,
routeUrl: "https://www.google.com/map1.jpg",
distance: '8',
runnerId: 1,
completed_run: false,
},
},
cheers: {
1: {
id: 1,
runId: 2,
userId: 1
},
2: {
id: 2,
runId: 1,
userId: 2
}
},
users: {
1: {
id: 1,
username: "RunnerGuy123",
email: "[email protected]"
imgUrl: "https://i.etsystatic.com/9453056/c/2000/1588/0/739/il/1a2714/1241409553/il_340x270.1241409553_g9xo.jpg"
},
2: {
id: 2,
username: "RunnerGirl123",
email: "[email protected]"
imgUrl: "https://previews.123rf.com/images/jemastock/jemastock1705/jemastock170502102/77465453-runner-girl-training-athletic-design-vector-illustration-graphic-.jpg"
}
}
goals: {
1: {
id: 1,
activity: "run",
goalType: "endurance",
startTime: '10/1/2018'
runnerId: 1,
},
2: {
id: 2,
activity: "bike",
goalType: "speed",
startTime: '10/8/2018'
runnerId: 2,
},
},
comments: {
1: {
id: 1,
body: "Great job!",
authorId: 1,
runId: 2
},
2: {
id: 2,
body: "Awesome work!",
authorId: 2,
runId: 1
},
},
},
ui: {
loading: true/false
},
errors: {
login: ["Incorrect username/password combination"],
commentForm: ["Comment body cannot be blank"],
},
session: { currentUserId: 1 }
}