Skip to content

Commit bb3d084

Browse files
committed
periodic refresh
1 parent 5c0292b commit bb3d084

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

site/src/modules/dashboard/DeploymentBanner/DeploymentBannerView.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ export const DeploymentBannerView: FC<DeploymentBannerViewProps> = ({
8989
};
9090
}, [fetchStats, stats]);
9191

92+
// biome-ignore lint/correctness/useExhaustiveDependencies(timeUntilRefresh): periodic refresh
9293
const lastAggregated = useMemo(() => {
9394
if (!stats) {
9495
return;
@@ -98,7 +99,7 @@ export const DeploymentBannerView: FC<DeploymentBannerViewProps> = ({
9899
return "just now";
99100
}
100101
return dayjs().to(dayjs(stats.collected_at));
101-
}, [stats, fetchStats]);
102+
}, [timeUntilRefresh, stats, fetchStats]);
102103

103104
const healthErrors = health ? getHealthErrors(health) : [];
104105
const displayLatency = stats?.workspaces.connection_latency_ms.P50 || -1;

0 commit comments

Comments
 (0)