mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-21 13:31:13 -05:00
Fix: Use fetchItemsRef in sort effect
This commit is contained in:
@@ -797,7 +797,7 @@ export function useModerationQueueManager(config: ModerationQueueManagerConfig):
|
||||
if (!user || isMountingRef.current) return;
|
||||
|
||||
pagination.reset();
|
||||
fetchItems(true);
|
||||
fetchItemsRef.current?.(true);
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [sort.config.field, sort.config.direction]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user