-
Notifications
You must be signed in to change notification settings - Fork 0
Redux State Shape
Christo Grabowski edited this page May 4, 2023
·
8 revisions
session: {
user: {}
}
spots: {
allSpots: {
[spotId]: {
spotData,
},
},
singleSpot: {
spotData,
SpotImages: [imagesData],
Owner: {
ownerData,
},
},
}
reviews: {
spot: {
[reviewId]: {
reviewData,
User: {
userData,
},
ReviewImages: [imagesData],
},
optionalOrderedList: [],
},
user: {
[reviewId]: {
reviewData,
User: {
userData,
},
Spot: {
spotData,
},
ReviewImages: [imagesData],
},
},
}
bookings: {
user: {
[bookingId]: {
bookingData,
Spot: {
spotData,
},
},
},
spot: {
[bookingId]: {
bookingData,
},
},
}