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.

[v4.6.0] bug: ionInfinite not emitted

See original GitHub issue

Bug Report

Ionic version: [x] 4.x

Current behavior: The ionInfinite event is never emitted when Ionic One is used. I observed this in a Stencil One PWA but others (see messages below) are reporting facing the same behavior in Angular apps.

<ion-infinite-scroll threshold="100px" id="infinite-scroll" onIonInfinite={($event) => console.log('Nothing happens')}>
          <ion-infinite-scroll-content>
          </ion-infinite-scroll-content>
        </ion-infinite-scroll>

Steps to reproduce: I provide a super simple sample repo:

git clone https://github.com/peterpeterparker/infinite
cd infinite
npm install
npm run start

Try to scroll, ionInfinite will not be emitted

Related code:

See repo https://github.com/peterpeterparker/infinite

Other information:

"@ionic/core": "^4.6.0",
"@stencil/core": "^1.1.2"

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:11
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
ralschacommented, Jun 26, 2019

Same problem in an Angular app: "@ionic/angular": "4.6.0"

ionInfinite event never emitted

  <ion-infinite-scroll threshold="100px" (ionInfinite)="loadData($event)">
    <ion-infinite-scroll-content
      loadingSpinner="bubbles"
      loadingText="Loading more data...">
    </ion-infinite-scroll-content>
  </ion-infinite-scroll>

Works fine with "@ionic/angular": "4.5.0"

0reactions
ionitron-bot[bot]commented, Jul 31, 2019

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

[v4.6.0] bug: ionInfinite not emitted · Issue #18632 · ionic-team ...
Current behavior: The ionInfinite event is never emitted when Ionic One is used. I observed this in a Stencil One PWA but others...
Read more >
InfiniteScroll _onScroll event not fired while scrolling - ionic-v3
I tried ion-infinite-scroll for my grid pagination. But it is not working as _onScroll event not being fired while scrolling.
Read more >
ionic 4 - loading spinner not working in infinite scroll
I haven't checked your code but I am sure this occured because in Ionic4 there is a change in the kind of events...
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. 6.
Read more >
Dynamic templates in AngularJS - Christos S. – chsakell's Blog
More specifically we have directives for 4 azure services, ... renders the currently loaded threads and last but not least an ion-infinite-scroll element....
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