diff --git a/src/components/catalog/CatalogContent.tsx b/src/components/catalog/CatalogContent.tsx index e1da3a016..bff2cf1d6 100644 --- a/src/components/catalog/CatalogContent.tsx +++ b/src/components/catalog/CatalogContent.tsx @@ -1,4 +1,4 @@ -import { memo, useMemo, useCallback, type RefObject, useEffect } from 'react'; +import { memo, useMemo, useCallback, type RefObject } from 'react'; import type { ActiveColorFilter } from '@/utils/color-image-resolver'; import { Skeleton } from '@/components/ui/skeleton'; import { cn } from '@/lib/utils'; @@ -21,9 +21,6 @@ import { SparklineSalesProvider } from '@/hooks/intelligence/useSparklineSales'; import { ProductLeafCategoryProvider } from '@/hooks/products/useProductLeafCategories'; import { ScrollToTopButton } from '@/components/common/ScrollToTopButton'; -// Diagnostic counter -let catalogRenderCount = 0; - interface CatalogContentProps { viewMode: ViewMode; shouldShowCatalogSkeleton: boolean; @@ -87,11 +84,6 @@ export const CatalogContent = memo(function CatalogContent({ setActiveProductId: _setActiveProductId, hideCategoryBadges = false, }: CatalogContentProps) { - catalogRenderCount++; - if (process.env.NODE_ENV === 'development') { - console.log(`[CatalogContent] Render #${catalogRenderCount} - viewMode: ${viewMode}, gridColumns: ${gridColumns}, products: ${paginatedProducts.length}`); - } - const selection = useCatalogSelection(paginatedProducts, selectionMode, onSelectedCountChange); const { selectedIds, toggleSelect: onToggleSelect } = selection; @@ -158,10 +150,10 @@ export const CatalogContent = memo(function CatalogContent({ } return ( -