mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-21 11:51:14 -05:00
Fix: Prevent unnecessary fetchItems on tab switch
This commit is contained in:
@@ -777,9 +777,9 @@ export const ModerationQueue = forwardRef<ModerationQueueRef>((props, ref) => {
|
||||
|
||||
// Phase 2: Filter changes (only after initial fetch completes)
|
||||
if (!isMountingRef.current && initialFetchCompleteRef.current) {
|
||||
debouncedFetchItems(debouncedEntityFilter, debouncedStatusFilter, true, activeTab);
|
||||
debouncedFetchItems(debouncedEntityFilter, debouncedStatusFilter, true, activeTabRef.current);
|
||||
}
|
||||
}, [debouncedEntityFilter, debouncedStatusFilter, user, activeTab, fetchItems, debouncedFetchItems]);
|
||||
}, [debouncedEntityFilter, debouncedStatusFilter, user, fetchItems, debouncedFetchItems]);
|
||||
|
||||
// Polling for auto-refresh (only if realtime is disabled)
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user