daniele-liprandi/EvoNEST-backbone

Sequential API calls instead of parallel

Offen

#45 geöffnet am 26.11.2025

 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (2 Forks)auto 404
FrontendMediumenhancementgood first issue

Repository-Metriken

Stars
 (1 Stern)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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.

Contributor Guide