bug: ion-infinite-scroll not emit after changing to another tab and back
See original GitHub issueIonic version: “@ionic/angular”: “^4.7.1”, “@angular/core”: “~8.1.2”, “@angular/forms”: “~8.1.2”,
I have three tabs use the one content together as bellow:
<ion-content> <ng-container [ngSwitch]="true"> <ng-container *ngSwitchCase="selectedTab == constant.ReminderpanelValue.Overview"> <app-reminder-overview [reminder]="reminders"></app-reminder-overview> </ng-container> <ng-container *ngSwitchCase="selectedTab == constant.ReminderpanelValue.Overdue || selectedTab == constant.ReminderpanelValue.Today || selectedTab == constant.ReminderpanelValue.Future"> <ion-refresher slot="fixed" (ionRefresh)="refresh($event)"> <ion-refresher-content pullingText="{{ 'COMMON.PULL_TO_REFRESH' | translate }}" refreshingSpinner="crescent"> </ion-refresher-content> </ion-refresher> <app-reminder-list [reminders] = "reminder?.Reminders" > </app-reminder-list> <ion-infinite-scroll threshold="200px" (ionInfinite)="loadMore($event)"></ion-infinite-scroll> </ng-container> </ng-container> </ion-content>
loadMore(event) { this.getReminder().finally(() => event.target.complete()); }
the first open screen that it work but when switch to another tab then ionInfinite event not effect.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (2 by maintainers)
Top GitHub Comments
Thanks @liamdebeasi so much for supporting, I found my mistake 😃 I forgot set complete event in case else.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.