setInterval von 5 auf 10 Sekunden erhöhert, da das CPL so mehr Zeit hat, alle Variablen zu initialisieren., weil bei 5 Sekunden irgendwann schafft das CPL nicht

This commit is contained in:
ISA
2024-10-28 08:37:30 +01:00
parent 30626a17d6
commit 8222eeac21
5 changed files with 24 additions and 19 deletions

View File

@@ -81,7 +81,7 @@ function Dashboard() {
loadDataOnce();
// Starten des Intervalls für regelmäßige Updates
const intervalId = setInterval(loadDataOnce, 5000);
const intervalId = setInterval(loadDataOnce, 10000);
return () => clearInterval(intervalId); // Bereinigung des Intervalls bei Komponente unmount
}, []);