diff --git a/site/src/hooks/useTime.ts b/site/src/hooks/useTime.ts index 3c431af3d4..f1547b01be 100644 --- a/site/src/hooks/useTime.ts +++ b/site/src/hooks/useTime.ts @@ -30,7 +30,8 @@ export function useTime(func: () => T, options: UseTimeOptions = {}): T { } const handle = setInterval(() => { - setComputedValue(() => thunk()); + const next = thunk(); + setComputedValue(() => next); }, interval); return () => {