CodeandCoffeeCommunity / boston-code-and-coffee

Codebase for the Boston Code and Coffee website
https://bostoncodeandcoffee.com
MIT License
3 stars 3 forks source link

Enhance the past events page to improve efficiency #52

Open detective-sokka opened 7 months ago

detective-sokka commented 7 months ago

As @alexpereira suggested, changes need to be made to the events page so that the photos data is fetched once. Here is the comment by Alex for reference:

You can update the initial query to fetch all the data once, instead of making all of these secondary requests:

https://github.com/CodeandCoffeeCommunity/boston-code-and-coffee/blob/main/app/service/meetup/graphql/fragments/GroupPastEventsFragment.ts#L16C19-L16C19

it would update this query to get the data you need