ion-infinite-scroll not working after 2 pages.
See original GitHub issueBug Report
Ionic Info
Ionic:
ionic (Ionic CLI) : 4.1.2 (C:\Users\amezc\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.2.0
Cordova:
cordova (Cordova CLI) : 8.0.0
Cordova Platforms : android 7.0.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.2, cordova-plugin-ionic-webview 2.1.3, (and 14 other plugins)
System:
Android SDK Tools : 26.1.1 (C:\Users\amezc\AppData\Local\Android\Sdk)
NodeJS : v6.13.1 (C:\Program Files\nodejs\node.exe)
npm : 3.10.10
OS : Windows 10
Describe the Bug
I am getting 20 data per pagination but after 2 pages event is not working in function.
Steps to Reproduce
Related Code
<ion-header>
<ion-navbar>
<ion-title>listEstablishment</ion-title>
</ion-navbar>
</ion-header>
<ion-content padding>
<ion-list text-wrap>
<ion-item *ngFor="let listedStore of storeList"
>
<p>{{listedStore.action}}</p>
</ion-item>
</ion-list>
<ion-infinite-scroll (ionInfinite)="loadMore($event)" [enabled]="shouldEnableScrolling" >
<ion-infinite-scroll-content
loadingSpinner="bubbles" loadingText="Cargando Establecimientos..."
></ion-infinite-scroll-content>
</ion-infinite-scroll>
</ion-content>
Expected Behavior
Can load more than 2 pages with using ion-infinite-scroll
Additional Context
I’ve tried add it in a component or modal but same problem.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:8
- Comments:11
Top Results From Across the Web
ion-infinite-scroll not working after 2 pages. #15564 - GitHub
I am getting 20 data per pagination but after 2 pages event is not working in function. Steps to Reproduce. Related Code. <ion-header>...
Read more >Ion-infinite-scroll not firing ionInfinite if records do not fill the ...
I retrieve a batch of 10 records at a time and if I'm running the app in a full-screen browser this initial batch...
Read more >Ion-infinite-scroll new pushed images does not load
Basically, initially you call first page api image, and then when user reaches to end position then infinite scroll calls function to load ......
Read more >Ionic adding infinite scroll to our list - Daily Dev Tips
We see there are two pages in total, so we can use our infinite loading once. Enough to demo it out to you...
Read more >InfiniteScroll - Ionic API Documentation
The Infinite Scroll allows you to perform an action when the user scrolls a specified distance from the bottom of the page.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Is there any update with this? I’m having the same issue and none of the steps above seem to work?
check this one out #17372