-
Notifications
You must be signed in to change notification settings - Fork 0
Redux State Shape
Jack edited this page Sep 19, 2022
·
7 revisions
store = {
session: {},
spots: {
allSpots: {
[spotId]: {
spotData,
},
optionalOrderedList: [],
},
singleSpot: {
spotData,
SpotImages: [imagesData],
Owner: {
ownerData,
},
},
},
reviews: {
spot: {
[reviewId]: {
reviewData,
User: {
userData,
},
ReviewImages: [imagesData],
},
optionalOrderedList: [],
},
user: {
[reviewId]: {
reviewData,
User: {
userData,
},
Spot: {
spotData,
},
ReviewImages: [imagesData],
},
optionalOrderedList: [],
},
},
bookings: {
user: {
[bookingId]: {
bookingData,
Spot: {
spotData,
},
},
optionalOrderedList: [],
},
spot: {
[bookingId]: {
bookingData,
},
optionalOrderedList: [],
},
},
};