Skip to content

Use keyed loop in guide in line with the style guide #1767

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

Merged
merged 1 commit into from
Sep 16, 2018
Merged

Use keyed loop in guide in line with the style guide #1767

merged 1 commit into from
Sep 16, 2018

Conversation

hkraal
Copy link
Contributor

@hkraal hkraal commented Aug 24, 2018

Per the Vue.js style guide the loop should be keyed, I feel this should be reflected in the guide as well.

Please note that I looked at Vue.js for the first time yesterday so I'm completely innocent and green on this one.

Per https://vuejs.org/v2/style-guide/#Keyed-v-for-essential the loop should be keyed, I feel this should be reflected in the guide.
@phanan phanan merged commit e9c3020 into vuejs:master Sep 16, 2018
@phanan
Copy link
Member

phanan commented Sep 16, 2018

Good catch, thanks!

@Justineo
Copy link
Member

Justineo commented Sep 16, 2018

Actually this key is not necessary here, though always adding key is suggested by the style guide. @chrisvfritz and @michalsnik are already working on some improvements on this for eslint-plugin-vue, see vuejs/eslint-plugin-vue#522.

@hkraal hkraal deleted the use-keyed-v-for-loop branch September 16, 2018 13:41
@phanan
Copy link
Member

phanan commented Sep 16, 2018

We should modify the style guide then, because for right now exactly the same example is being used.

phanan added a commit that referenced this pull request Sep 16, 2018
phanan added a commit that referenced this pull request Sep 16, 2018
* Revert "Add missing patron links (#1771)"

This reverts commit 0331976.

* Revert "WIP: Re-order Plugins page (#1788)"

This reverts commit 3d4bd33.

* Revert "fix: removing margins from nested ul/ol, top avoid awkward spacing. (#1761)"

This reverts commit 35b875c.

* Revert "Use keyed loop (#1767)"

This reverts commit e9c3020.
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.

3 participants