eShopOnContainers
eShopOnContainers copied to clipboard
3 separate calls to catalog API
in the 'src/Web/WebSPA/Client/src/modules/catalog/catalog.component.ts', 3 separate calls are made to the catalog API to get brands, catalog, and types in the loadData() function (shown below). Why was this not done using aggregation? Perhaps one HTTP get request to an action method on the aggregation service which would combine the catalog, as well as brands and types into one response?
loadData() { this.getBrands(); this.getCatalog(12, 0); this.getTypes(); }
Hello Andrew, can I take care of this (could you make me the assignee)? :)
Hello Andrew, can I take care of this (could you make me the assignee)? :)
Hi Tiago. Sure
Hello Andrew, can I take care of this (could you make me the assignee)? :)
It probably shouldn't have been logged as an issue but maybe just a general question.
Good scenario. It will be awesome if you can send us a PR :) cc @sughosneo