[temp] disable polling everywhere (#205)

This commit is contained in:
Brendan Kellam 2025-02-20 16:47:49 -08:00 committed by GitHub
parent 0ac9509fab
commit 5076ee7f05
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 1 additions and 12 deletions

View file

@ -62,8 +62,6 @@ export const ErrorNavIndicator = () => {
};
fetchErrors();
const intervalId = setInterval(fetchErrors, 1000);
return () => clearInterval(intervalId);
}, [domain]);
if (errors.length === 0) return null;

View file

@ -94,8 +94,7 @@ export const NavigationMenu = async ({
<div className="flex items-center gap-2 px-3 py-1.5 bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-700 rounded-full text-blue-700 dark:text-blue-400 text-xs font-medium hover:bg-blue-100 dark:hover:bg-blue-900/30 transition-colors cursor-pointer">
<span className="inline-block w-2 h-2 bg-blue-400 dark:bg-blue-500 rounded-full"></span>
<span>
{Math.ceil((subscription.nextBillingDate * 1000 - Date.now()) / (1000 * 60 * 60 * 24))} days left in
trial
{Math.ceil((subscription.nextBillingDate * 1000 - Date.now()) / (1000 * 60 * 60 * 24))} days left in trial
</span>
</div>
</Link>

View file

@ -46,8 +46,6 @@ export const ProgressNavIndicator = () => {
};
fetchInProgressJobs();
const intervalId = setInterval(fetchInProgressJobs, 1000);
return () => clearInterval(intervalId);
}, [domain]);
if (inProgressJobs.length === 0) {

View file

@ -46,8 +46,6 @@ export const WarningNavIndicator = () => {
};
fetchWarnings();
const intervalId = setInterval(fetchWarnings, 1000);
return () => clearInterval(intervalId);
}, [domain]);
if (warnings.length === 0) {

View file

@ -110,8 +110,6 @@ export default function ConnectionManagementPage() {
}
loadData()
const intervalId = setInterval(loadData, 1000)
return () => clearInterval(intervalId)
}, [params.domain, params.id])
if (loading) {

View file

@ -59,8 +59,6 @@ export const ConnectionList = ({
};
fetchConnections();
const intervalId = setInterval(fetchConnections, 1000);
return () => clearInterval(intervalId);
}, [domain]);
return (