ngx-infinite-scroll
ngx-infinite-scroll copied to clipboard
immediateCheck isn't wired up
Your issue may already be reported!
- [x] Please search on the issue track before creating one.
Expected Behavior
With immediateCheck
it should trigger directly on load (if there are not enough items)
Actual Behavior
It seems that immediateCheck
isn't even wired up to do anything:
https://github.com/orizens/ngx-infinite-scroll/blob/7dc71e98ab3669090b2e6ec40d717938b9cfa02b/src/modules/infinite-scroll.directive.ts#L33
Possible Solution
It should be wired up (again?) and/or there should be a way to trigger it manually
Steps To Reproduce / Demo (if applicable)
[ ] ~~Please share a stackblitz or plunkr demo reproducing this issue~~
Context
The list I load it not long enough by default (depending on screen size) and it should be extended once it's loaded
Your Environment
- [x] Version used: angular
8.2.7
and infinite-scroll8.0.0
- [x] Browser Name and version: Firefox
71
and Chromium76
- [x] (Optional) Operating System and version (desktop or mobile): N/A
- [x] (Optional) Link to your project: https://github.com/cromefire/jellyfin-angular/blob/master/src/app/common/slider/slider.component.html
correct - immediateCheck
is not implemented.
achieving the task you describe in Context requires some thorough discussion.
ng-infinite-scroll always executed (fired the output) until the scroll distance was exceeded. A similar approach would work here I believe.
The alternatives aren't great:
- Manually load the first page on load, hoping the page size is big enough to create scrollbars
- Manually loop and fetch pages, stopping when the element has scrollbars
Any update here?