refactor: improve cache utilization and data fetching logic in SharedCarousel and CategoryList components for enhanced performance and maintainability

This commit is contained in:
sebseb7
2025-07-23 10:20:35 +02:00
parent 146daf8eb1
commit 226ca3e834
2 changed files with 39 additions and 40 deletions

View File

@@ -180,6 +180,7 @@ class CategoryList extends Component {
const categoryTree = windowObj.productCache[cacheKey]?.categoryTree;
if (categoryTree) {
this.processCategoryTree(categoryTree);
this.setState({ fetchedCategories: true });
return;
}