Skip to content

Use index as the key in todo list example #998

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
Jul 9, 2017

Conversation

robertbenjamin
Copy link
Contributor

If the todo content is used as the key, there will be issues if a user enters multiple todos with the same content. Using the index ensures that all keys are unique.

If the todo content is used as the key, there will be issues if a user enters multiple todos with the same content. Using the index ensures that all keys are unique.
@chrisvfritz chrisvfritz merged commit 81de5d4 into vuejs:master Jul 9, 2017
@Alex-Sokolov Alex-Sokolov mentioned this pull request Jul 9, 2017
kazupon pushed a commit to kazupon/vuejs.org that referenced this pull request Oct 1, 2017
If the todo content is used as the key, there will be issues if a user enters multiple todos with the same content. Using the index ensures that all keys are unique.
@robertbenjamin robertbenjamin deleted the patch-1 branch October 17, 2017 20:35
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.

2 participants