feat: Invalidate logs summary and enable refetch on mount for fresh processing tasks display

This commit is contained in:
DESKTOP-RTLN3BA\$punk 2025-12-28 16:02:56 -08:00
parent 35904ba0c8
commit 3ec2d46051
2 changed files with 6 additions and 0 deletions

View file

@ -141,6 +141,8 @@ export function useLogsSummary(
}),
enabled: !!searchSpaceId,
staleTime: 3 * 60 * 1000,
// Always refetch on mount to show fresh processing tasks when navigating to the page
refetchOnMount: "always",
// Smart polling: only poll when there are active tasks and polling is enabled
// This prevents unnecessary API calls when nothing is being processed
refetchInterval: enablePolling