Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add totalSize props to VirtualScroller to support lazy loading #1601

Open
nclemeur opened this issue Sep 23, 2021 · 5 comments
Open

Add totalSize props to VirtualScroller to support lazy loading #1601

nclemeur opened this issue Sep 23, 2021 · 5 comments
Labels
Resolution: Help Wanted Issue or pull request requires extra help and feedback
Milestone

Comments

@nclemeur
Copy link

[x] feature request 

It would be good to have a totalSize props (or similar) on the virtual loader that can be used to calculate the lazy loading parameters. Currently, the length of the items is used for that purpose (in the getLast method) but this is not really adapted when using lazily loaded data.

@cagataycivici cagataycivici added the Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add label Oct 25, 2021
@cagataycivici cagataycivici added this to the 3.8.3 milestone Oct 25, 2021
@mertsincan mertsincan modified the milestones: 3.9.0, 3.10.0 Nov 18, 2021
@mertsincan mertsincan removed this from the 3.10.0 milestone Dec 5, 2021
@loancarre
Copy link

hello, it would be nice to have this

@AlaaL
Copy link

AlaaL commented Mar 27, 2024

This is very important feature, I want to use lazy load to load new chunk of data every time i reach the end of scroller, and i cannot do that without loading the entire data at first in the items so the virtual scroller can know how many items there are to load.
It kina break the concept of lay loading.

@BenJackGill
Copy link

Lazy loading wont let me scroll down until it "lazy loads" the full data set. It just keeps flashing the first items in the array. Only when the list is fully loaded does it actually scroll down.

I assume it's because of this problem.

Has anyone found a workaround for this? This issue was raised in 2021 so it it seems they're not giving this issue priority

@BenJackGill
Copy link

Current workaround: Do not use the loading prop. Just use lazy and the matching @lazy-load emit.

If using the loading prop there will be the problem that we can't scroll down until the full list is loaded. Without that prop it almost works.

The only problem now is that if a user quickly scrolls to the very bottom then the loading to stop right there. It's like they 'catch the bottom' and it will only continue loading more if they scroll back up a little more to release it and let it know there are more items to load.

@mertsincan mertsincan added Resolution: Help Wanted Issue or pull request requires extra help and feedback and removed Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add labels Dec 27, 2024
@mertsincan mertsincan removed their assignment Dec 27, 2024
@mertsincan mertsincan added this to the 4.x milestone Dec 27, 2024
@github-project-automation github-project-automation bot moved this to Review in PrimeVue Dec 27, 2024
Copy link

Due to PrimeTek's demanding roadmap for PrimeVue and the limited bandwidth of the core team, this issue is available for anyone to work on. Make sure to reference this issue in your pull request. ✨ Thank you for your contribution! ✨

@mertsincan mertsincan modified the milestones: 4.x, Future Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Help Wanted Issue or pull request requires extra help and feedback
Projects
Status: Review
Development

No branches or pull requests

6 participants