Skip to content

Commit

Permalink
Debounce queue invalidation (#914)
Browse files Browse the repository at this point in the history
  • Loading branch information
harshithmohan authored May 24, 2024
1 parent b249070 commit 8d01ca6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/core/signalr/eventHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ const invalidateImportFolders = debounce(
1000,
);

// Should we add a debounce here? It seems to work fine without it
const invalidateQueueItems = () => invalidateQueries(['queue', 'items']);
const invalidateQueueItems = debounce(
() => invalidateQueries(['queue', 'items']),
500,
);

const invalidateReleaseManagement = debounce(
() => invalidateQueries(['release-management']),
Expand Down

0 comments on commit 8d01ca6

Please sign in to comment.