Skip to content

Store State Shape

Daniel Somorov edited this page Aug 25, 2023 · 2 revisions
store = {
  session: {},
  groups: {
    allGroups: {
      [groupId]: {
        groupData,
      },
      optionalOrderedList: [],
    },
    singleGroup: {
      groupData,
      GroupImages: [imagesData],
      Organizer: {
        organizerData,
      },
      Venues: [venuesData],
    },
  },
  events: {
    allEvents: {
      [eventId]: {
        eventData,
        Group: {
          groupData,
        },
        Venue: {
          venueData,
        },
      },
    },
    singleEvent: {
      eventData,
      Group: {
        groupData,
      },
      Venue: {
        venueData,
      },
      EventImages: [imagesData],
      Members: [membersData],
      Attendees: [attendeeData],
    },
  },
};
Clone this wiki locally