increase refresh rate to every 2 seconds

This commit is contained in:
Gabriel mermelstein 2024-06-12 17:06:42 +02:00
parent 6a94ca8d35
commit 9ba6e5922e
No known key found for this signature in database
GPG Key ID: 82B8134785FEAE0D

View File

@ -152,7 +152,7 @@ function App() {
}
};
const intervalId = setInterval(fetchAllMessages, 5000); // Trigger fetchData every 5 seconds
const intervalId = setInterval(fetchAllMessages, 2000); // Trigger fetchData every 2 seconds
return () => clearInterval(intervalId);
}, [joinedCommunities, apiEndpoint]);