Hi, I just want to ask if you can help about the loader of primeng table. On azure website the loader is hiding too fast even the table is not yet populated. But on local machine using the same database connection it is not happening. Hope you can help me with this. Heres an snippet of the code:
ts file:
getTagTypes(event?: LazyLoadEvent) {
if (this.primengTableHelper.shouldResetPaging(event)) {
this.paginator.changePage(0);
return;
}
this.primengTableHelper.showLoadingIndicator();
this._tagTypeAppService.getTagType(
undefined,
this.filterText,
this.primengTableHelper.getSorting(this.dataTable),
this.primengTableHelper.getMaxResultCount(this.paginator, event),
this.primengTableHelper.getSkipCount(this.paginator, event)
).pipe(finalize(() => this.primengTableHelper.hideLoadingIndicator() ))
.subscribe(result => {
this.primengTableHelper.totalRecordsCount = result.totalCount;
this.primengTableHelper.records = result.items;
this.primengTableHelper.hideLoadingIndicator();
});
}
7 Answer(s)
-
0
Hi,
Could you try to remove below line from subscribe function and try again ?
this.primengTableHelper.hideLoadingIndicator();
Thanks,
-
0
already did it, but no luck. it just happen after the upgrade to aspnetzero 7.1.
-
0
Thanks @mark.montesa
Is it possible to share your app url with [email protected] to check it ?
-
0
Email sent.
Thanks.
-
0
hi,
any update on this question?? thanks.
-
0
Hi,
We will replace current loader with another one. You can follow this issue https://github.com/aspnetzero/aspnet-zero-core/issues/2682 or you can use it in your project before we implement it.
-
1
thanks will follow the thresd for updates