You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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: