Skip to content

Commit 2a4aec1

Browse files
fix: add refetchInterval to news feed so it auto-refreshes every 5 min
useOsintNews had staleTime but no refetchInterval, causing the Live Intel Feed to only update on region change or window focus events. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 165a34c commit 2a4aec1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

client/src/modules/osint/hooks/useOsintNews.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export function useOsintNews(lat: number, lon: number, category: string, enabled
2929
return (await res.json()) as OsintResponse;
3030
},
3131
enabled: enabled,
32-
staleTime: 5 * 60 * 1000, // 5 minutes
32+
staleTime: 5 * 60 * 1000,
33+
refetchInterval: 5 * 60 * 1000, // refresh every 5 minutes
3334
});
3435
}

0 commit comments

Comments
 (0)