mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-22 12:11:21 -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) {
|
if (user) {
|
||||||
fetchItems(debouncedEntityFilter, debouncedStatusFilter, false); // Show loading
|
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
|
// Polling for auto-refresh
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user