Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

address review: clarify intervalMs restart behavior in JSDoc

Adam Eivycb07a8c1ea6b
diff --git a/client/src/hooks/useAutoRefetch.js b/client/src/hooks/useAutoRefetch.js
index d88f96c063..5d7d09137a 100644
--- a/client/src/hooks/useAutoRefetch.js
+++ b/client/src/hooks/useAutoRefetch.js
@@ -5,7 +5,7 @@ import { useState, useEffect, useRef } from 'react';
* Eliminates the repeated useEffect + setInterval pattern across dashboard widgets.
*
* @param {Function} fetchFn - Async function that returns data (should handle its own errors)
- * @param {number} intervalMs - Refetch interval in milliseconds (should be constant for the component's lifetime)
+ * @param {number} intervalMs - Refetch interval in milliseconds (changing this will restart the interval with the new value)
* @returns {{ data: any, loading: boolean }}
*/
export function useAutoRefetch(fetchFn, intervalMs) {