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

Feat/list pagination #43

Conversation

kamaladenalhomsi
Copy link
Contributor

What does this PR do?

Add pagination (infinite scroll) for the pull requests list, and also make PRs expand when hovering

@paulodiovani
Copy link
Owner

conflicts

@kamaladenalhomsi
Copy link
Contributor Author

conflicts

Resolved

@kamaladenalhomsi
Copy link
Contributor Author

@paulodiovani can you please merge my last two pull requests before midnight

@paulodiovani
Copy link
Owner

@kamaladenalhomsi Can't promise,
But if you're worried about hacktoberfest, they don't need to be merged. Just open. 😃

<div class="pr-list">
<div
v-for="(user, userIndex) in users"
v-bind:key="user.username"
v-bind:key="userIndex"
Copy link
Contributor

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)

;)

@paulodiovani
Copy link
Owner

Closed for lack of updates,
More info on #52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants