-
Notifications
You must be signed in to change notification settings - Fork 17
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
Feat/list pagination #43
Feat/list pagination #43
Conversation
conflicts |
Resolved |
@paulodiovani can you please merge my last two pull requests before midnight |
@kamaladenalhomsi Can't promise, |
<div class="pr-list"> | ||
<div | ||
v-for="(user, userIndex) in users" | ||
v-bind:key="user.username" | ||
v-bind:key="userIndex" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a reason for using the index here instead of username?
Because this can cause bug since Vue will use it to render or not again the item in the list.
For example, if I'm rendering a list of texts with the array ['apple', 'banana', 'pineapple']
- apple (key: 0)
- banana (key: 1)
- pineapple (key: 2)
and I change it to ['apple', 'pineapple']
the second item will render banana
since the key is the same.
- apple (key: 0)
- banana (key: 1)
;)
Closed for lack of updates, |
What does this PR do?
Add pagination (infinite scroll) for the pull requests list, and also make PRs expand when hovering