daniele-liprandi/EvoNEST-backbone
Sequential API calls instead of parallel
Open
#45 opened on Nov 26, 2025
FrontendMediumenhancementgood first issue
Repository metrics
- Stars
- (1 star)
- PR merge metrics
- (PR metrics pending)
Description
Description
Config types are fetched sequentially in a loop, causing slow page loads.
Files affected
src/hooks/useConfigTypes.ts
Current code
for (const configType of configTypes) {
const response = await fetch(`/api/config/types?type=${configType}`)
}
Recommended fix
Use Promise.allSettled to fetch all configs in parallel.