mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-02 22:01:05 +02:00
feat: Invalidate logs summary and enable refetch on mount for fresh processing tasks display
This commit is contained in:
parent
35904ba0c8
commit
3ec2d46051
2 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue