refactor: improve cache utilization and data fetching logic in SharedCarousel and CategoryList components for enhanced performance and maintainability
This commit is contained in:
@@ -180,6 +180,7 @@ class CategoryList extends Component {
|
||||
const categoryTree = windowObj.productCache[cacheKey]?.categoryTree;
|
||||
if (categoryTree) {
|
||||
this.processCategoryTree(categoryTree);
|
||||
this.setState({ fetchedCategories: true });
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user