-
Notifications
You must be signed in to change notification settings - Fork 1
Sample State
alscotty edited this page Jan 7, 2020
·
4 revisions
{
entities: {
users: {
1: {
id: 1,
username: newathlete,
friendIds: [2],
routeIds: [4]
},
2: {
id: 2,
username: runnerdude,
friendIds: [1],
routeIds: []
}
},
routes: {
4:{
id: 4,
userId: 1,
title: 'Bay Area fav run',
time: null,
miles: 6.2,
coordinates: [ {lat: 37.772, lng: -122.214},
{lat: 21.291, lng: -157.821},
{lat: -18.142, lng: 178.431},
{lat: -27.467, lng: 153.027} ]
}
},
coordinates: {
6: {
id: 6,
route_id: 4,
lat: 4.02,
lng: 120.10,
ord: 1
},
6: {
id: 6,
route_id: 4,
lat: 4.12,
lng: 121.10,
ord: 2
},
6: {
id: 6,
route_id: 4,
lat: 4.09,
lng: 122.10,
ord: 3
}
},
comments: {
3: {
id: 3,
routeId: 4,
userId: 2,
content: 'Nice route! will have to try'
}
}
session: {
currentUserId: 4
},
errors: {
login: ['Incorrect login credentials'],
routeForm: ['Title text required'],
commentForm: ['Comment cannot be blank']
}
}