fix: remove unnecessary dependency from fetchMarketServers to improve performance (#56)

This commit is contained in:
samanhappy
2025-05-09 21:24:27 +08:00
committed by GitHub
parent eab421c753
commit 74d1ca6a87

View File

@@ -52,7 +52,7 @@ export const useMarketData = () => {
} finally {
setLoading(false);
}
}, [t, currentPage]);
}, [t]);
// Apply pagination to data
const applyPagination = useCallback((data: MarketServer[], page: number, itemsPerPage = serversPerPage) => {