mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-22 10:31:13 -05:00
Fix: Stop infinite fetchItems loop
This commit is contained in:
@@ -532,7 +532,8 @@ export const ModerationQueue = forwardRef<ModerationQueueRef>((props, ref) => {
|
||||
if (user) {
|
||||
fetchItems(debouncedEntityFilter, debouncedStatusFilter, false); // Show loading
|
||||
}
|
||||
}, [debouncedEntityFilter, debouncedStatusFilter, user, fetchItems]);
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [debouncedEntityFilter, debouncedStatusFilter, user]);
|
||||
|
||||
// Polling for auto-refresh
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user