nextcloud-libraries / nextcloud-libraries/nextcloud-vue

Feature Request: infinite scroll helper

Open
#8,921 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Vue
Stars
246
Forks
99
Avg merge
1d 20h
Merged PRs (30d)
103

Description

The "infinite scroll" paradigm is common among different apps, and - even if the base concept is always the same: register a JS handler for scroll event, and calculate the vertical position of the element - each app implements his own approach.

Some example:

I'm not know which is the best approach, but providing once this functionality would permit easier implementation and less duplication of dependencies and efforts.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Compare the existing implementations in Bookmarks' and News' src/components/VirtualScroll.vue files, Activity's useInfiniteScroll dependency, and Mail's src/directives/infinite-scroll.js. First determine the reusable API and integration approach; the work is done when a shared infinite-scroll helper is defined and its scope is agreed for reducing these duplicated implementations.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.