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

How to Implement Pagination in SelectMenu for Large Datasets? #2744

Open
tahirmahmudzade opened this issue Nov 23, 2024 · 0 comments
Open

How to Implement Pagination in SelectMenu for Large Datasets? #2744

tahirmahmudzade opened this issue Nov 23, 2024 · 0 comments
Labels
question Further information is requested

Comments

@tahirmahmudzade
Copy link

tahirmahmudzade commented Nov 23, 2024

Description

I’m using the USelectMenu component from Nuxt UI and have encountered performance issues when dealing with large datasets. I have a dataset of approximately 900 items, and when displaying all of them in the SelectMenu, it slows down significantly or even freezes slightly during interactions.

To optimize the performance, I would like to implement pagination with lazy loading. Here’s what I aim to achieve:
• Initially display the first 25 items.
• As I scroll to the bottom of the dropdown, load the next 25 items dynamically (incrementally).

Is there a built-in way to achieve this in SelectMenu, or would you recommend a specific approach (e.g., using a custom scroll listener or integrating infinite scrolling)? Any guidance or examples would be greatly appreciated!

@tahirmahmudzade tahirmahmudzade added the question Further information is requested label Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant