Merge branch 'feature/dropdown-filter' into develop

This commit is contained in:
ISA
2024-10-02 06:59:24 +02:00
9 changed files with 310 additions and 66 deletions

View File

@@ -144,7 +144,15 @@ const useLineData = (webserviceGisLinesStatusUrl, setLineStatusData) => {
}
};
const scheduleNextFetch = () => {
if (!isCancelled) {
fetchData();
setTimeout(scheduleNextFetch, 30000);
}
};
fetchData();
scheduleNextFetch();
// Setze ein Intervall, um die Daten alle 20 Sekunden erneut abzurufen
//const intervalId = setInterval(fetchData, 20000);