ScottyLabs / tartanhacks_dashboard_v2

3 stars 7 forks source link

Teams Page List Refactor #69

Closed rlyss closed 1 year ago

rlyss commented 1 year ago

Description

The Teams List page currently uses the functional widget _buildTeamHeader to display the list of visible teams, which in turn calls getData to query backend API via getTeams and populate a teamWidgetList of Team cards to display. Since _buildTeamHeader is within the widget tree, the API is called on every refresh and causes to page to become slow when there are a large number of teams.

Possible refactor fixes

Designs

No response