mirror of
				https://github.com/StefBuwalda/dashboard_test.git
				synced 2025-10-31 19:59:58 +00:00 
			
		
		
		
	Change the frontend to update every 5 seconds
This commit is contained in:
		| @@ -27,7 +27,7 @@ | ||||
|             }) | ||||
|             .catch(error => console.error("Error fetching data", error)) | ||||
|             .finally(() => { | ||||
|                 setTimeout(fetchData, 1000); // schedule next request after 1 second | ||||
|                 setTimeout(fetchData, 5000); // schedule next request after 5 seconds | ||||
|             }); | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user