This commit is contained in:
ABasral
2025-09-12 13:37:27 +05:30
parent b06bb213b7
commit 52ded64b40
2 changed files with 5 additions and 5 deletions

View File

@ -59,7 +59,7 @@ export default function ProductCategory() {
};
preloadImages();
}, []);
}, [categoryImages]);
// Ultra-fast animation variants (no delays)
const fadeInLeft = {
@ -138,7 +138,7 @@ export default function ProductCategory() {
</motion.li>
);
});
}, [currentCategory, handleCategoryChange]);
}, [currentCategory, handleCategoryChange, categories, categoryImages, categoryLinks]);
// Ultra-optimized image switcher with instant transitions
const categoryImageComponent = useMemo(
@ -177,7 +177,7 @@ export default function ProductCategory() {
))}
</div>
),
[currentCategory]
[currentCategory, categories, categoryImages]
);
return (