I am contacting an array on value updated by the server, but the UI template flicker on concat.. what should be done to avoid such a situation.
@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);