onezerocompany / zero-ui

MIT License
2 stars 0 forks source link

Improve the infinitely scrolling list #39

Closed lucasilverentand closed 1 year ago

lucasilverentand commented 1 year ago

We have identified several areas for improvement in our infinitely scrolling list component. These improvements aim to enhance user experience, optimize performance, and provide better control over the list's behavior. The suggested enhancements are as follows:

  1. Add the ability to start at a specific index: Users should be able to start the list at a certain point (e.g., index 1827949) and only load pages around that point. This will enable them to quickly navigate to a specific point in the list without having to scroll through all previous items.

  2. Implement dismissing old pages: When the user has scrolled far away from a page, and it's older than a configurable time limit (e.g., X minutes), the component should automatically dismiss that page to free up memory and improve performance.

  3. Optimize reloading: The component should only add, remove, or swap elements when necessary, reducing the amount of re-rendering and improving performance.

  4. Implement configurable pagination: Users should be able to paginate the list without any limit, based on a configurable value instead of the number of documents.

### Tasks
- [ ] Make sure to check that new items added to the list are added