-
Notifications
You must be signed in to change notification settings - Fork 1
Sample State
kevinxmao edited this page Mar 29, 2021
·
8 revisions
{
entities: {
stores: {
2: {
id: 2,
storeName: 'Empire',
address: String <Address>,
Description: Text,
},
...
},
reviews: {
all: [{
user: <userId>,
store: <storeId>,
rating: 4,
review: 'This place is great',
date: '2020-10-12'
}, {}],
store: [],
new: undefined
},
items: {
5: {
id: 5,
itemName: <ItemName>
price: 45.00,
description: <Description>
},
...
},
search: {
stores: [],
items: []
}
},
ui: {
loading: true/false,
modal: "",
},
errors: {
session: [],
search: ['Not found'],
},
session: {
isAuthenticated: true,
isSignedIn: true,
user: {
id: "6060eehggegegghe",
userName: "demoUser",
portfolioImage: <ImageUrl>,
dob: '1995-09-20',
iat: 1616786745,
exp: 1616991684
}
}
}