-
Notifications
You must be signed in to change notification settings - Fork 124
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
Duplicate id in store #6
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @drehimself
I found an issue with the ids in the store as I have 5 records in the database starting from id 1. Now If I add several more items, the next items will have a manually generated id which will result in the following error:
[Vue warn]: Duplicate keys detected: '4'. This may cause an update error.
The reason for this is that you start with a hard coded id here:
todo-vue/src/components/TodoList.vue
Line 48 in 9487b27
How can this be fixed?
The text was updated successfully, but these errors were encountered: