Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Loader hiding too fast #7643


User avatar
0
mark.montesa created

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)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Could you try to remove below line from subscribe function and try again ?

    this.primengTableHelper.hideLoadingIndicator();

    Thanks,

  • User Avatar
    0
    mark.montesa created

    already did it, but no luck. it just happen after the upgrade to aspnetzero 7.1.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks @mark.montesa

    Is it possible to share your app url with [email protected] to check it ?

  • User Avatar
    0
    mark.montesa created

    Email sent.

    Thanks.

  • User Avatar
    0
    mark.montesa created

    hi,

    any update on this question?? thanks.

  • User Avatar
    0
    ismcagdas created
    Support Team

    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.

  • User Avatar
    1
    mark.montesa created

    thanks will follow the thresd for updates