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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix(media): stop the 3D detail poll on external delete and reset load state on id change (#2953)
[._.]/ Adam Eivy38c9bd1f0e56
diff --git a/client/src/pages/Media3DDetail.jsx b/client/src/pages/Media3DDetail.jsxindex d214ee78d4..bd8d89a1c7 100644--- a/client/src/pages/Media3DDetail.jsx+++ b/client/src/pages/Media3DDetail.jsx@@ -39,14 +39,22 @@ export default function Media3DDetail() {return next;}, [id, mountedRef]);- useEffect(() => { load({ initial: true }); }, [load]);+ // Re-fetch from scratch whenever the routed id changes — reset loading/notFound+ // so switching between two `/media/3d/:id` records shows a spinner instead of+ // the previous record's content (and doesn't carry a stale not-found flag).+ useEffect(() => {+ setLoading(true); setNotFound(false);+ load({ initial: true });+ }, [load]);// Poll only while generating (the initial fetch above owns the first load, so// immediate:false); `load` owns its own state + error handling, so pollOnly.+ // Gate off notFound too: if the record is deleted out from under a live poll+ // (another tab / peer), stop polling instead of 404-ing every tick.useAutoRefetch(load, POLL_INTERVAL_MS, {pollOnly: true,immediate: false,- enabled: record?.status === 'generating',+ enabled: !notFound && record?.status === 'generating',});const handleRegenerate = useCallback(async () => {