question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: ion-infinite-scroll not emit after changing to another tab and back

See original GitHub issue

Ionic 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:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
caothuongcommented, Jun 15, 2020

Thanks @liamdebeasi so much for supporting, I found my mistake 😃 I forgot set complete event in case else.

0reactions
ionitron-bot[bot]commented, Jul 15, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

bug: ion-infinite-scroll not emit after changing to another tab ...
the first open screen that it work but when switch to another tab then ionInfinite event not effect. The text was updated successfully,...
Read more >
Ion-Spinner not showing on Infinite-Scroll when using ng-if
Once disabled, the infinite scroll will not emit additional "loadMore" events. As somebody already mentioned, the page number should be updated ...
Read more >
ion-virtual-scroll - Ionic Framework
Even if the "data" hasn't changed, the second response will produce objects with different identities, and Ionic will tear down the entire DOM...
Read more >
W2UI 1.3 Released: Goodbye Pagination, Hello Infinite Scroll
This release has many new features, improvements, bug fixes. New 1.3 version is not backward compatible with 1.2, however, these release notes ...
Read more >
ion-refresher causing fixed elements to scroll - You.com
ionic-team/ionic-frameworkbug: ion-infinite-scroll not emit after changing to another tab and back#21440. Created over 2 years ago.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found