When trying to access an updated array value from the server, I noticed that the UI template is flickering when concatenation occurs. How can this issue be resolved?
@Input('companies') set setCompanyArray(companies) {
this.showNotFound = false;>
if (!companies) {
return;
}
companies.map((company) => {
company['searchFilter'] = this.lastSearchedText;
});
if (!this.companies) {
this.companies = companies;
return;
}
this.companies = this.companies.concat(companies);