mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-26 17:26:23 +02:00
hotpatch: remove consitent 2 sec interval api call to logs summary endpoint
This commit is contained in:
parent
0e1ea9c30f
commit
46eb63fa11
4 changed files with 27 additions and 60 deletions
|
|
@ -80,8 +80,10 @@ export function NavNotes({
|
|||
const [isAllNotesSidebarOpen, setIsAllNotesSidebarOpen] = useState(false);
|
||||
|
||||
// Poll for active reindexing tasks to show inline loading indicators
|
||||
// Smart polling: only polls when there are active tasks, stops when idle
|
||||
const { summary } = useLogsSummary(searchSpaceId ? Number(searchSpaceId) : 0, 24, {
|
||||
refetchInterval: 2000,
|
||||
enablePolling: true,
|
||||
refetchInterval: 5000, // Poll every 5 seconds when tasks are active
|
||||
});
|
||||
|
||||
// Create a Set of document IDs that are currently being reindexed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue