mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-21 09:31:13 -05:00
Fix: Remove function dependencies from sort effect
This commit is contained in:
@@ -798,8 +798,8 @@ export function useModerationQueueManager(config: ModerationQueueManagerConfig):
|
||||
|
||||
pagination.reset();
|
||||
fetchItems(true);
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [sort.config.field, sort.config.direction, pagination.reset, fetchItems]);
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [sort.config.field, sort.config.direction]);
|
||||
|
||||
// Pagination changes trigger refetch
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user