store = {
session: {},
groups: {
allGroups: {
[groupId]: {
id,
name,
about,
city,
state,
numMembers,
organizerId,
previewImage,
privacy,
type,
createdAt,
updatedAt
},
optionalOrderedList: [],
},
singleGroup: {
id,
name,
about,
city,
state,
type,
numMembers,
organizerId,
privacy,
createdAt,
updatedAt,
GroupImages: [imagesData],
Organizer: {
id,
firstName,
lastName
},
Venues: [venuesData],
},
},
events: {
allEvents: {
[eventId]: {
id,
name,
type,
numAttending,
previewImage,
type,
venueId,
startDate,
endDate,
Group: {
id,
name,
city,
state
},
Venue: {
id,
city,
state
},
},
},
// In this slice we have much more info about the event than in the allEvents slice.
singleEvent: {
id,
groupId,
name,
capacity,
price,
type,
venueId,
description,
numAttending,
startDate,
endDate,
Group: {
id,
name,
city,
state,
privacy
},
// Note that venue here will have more information than venue did in the all events slice. (Refer to your API Docs for more info)
Venue: {
id,
city,
state,
lat,
lng,
address
},
EventImages: [imagesData],
// These would be extra features, not required for your first 2 CRUD features
Members: [membersData],
Attendees: [attendeeData],
},
},
};