daniele-liprandi/EvoNEST-backbone
Sequential API calls instead of parallel
Aperta
#45 aperta il 26 nov 2025
FrontendMediumenhancementgood first issue
Metriche repository
- Star
- (1 stella)
- Metriche merge PR
- (Nessuna PR mergiata in 30 g)
Descrizione
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.