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

Vue warn: Duplicate keys detected: '2' #7

Open
vandroids opened this issue Jan 24, 2019 · 0 comments
Open

Vue warn: Duplicate keys detected: '2' #7

vandroids opened this issue Jan 24, 2019 · 0 comments

Comments

@vandroids
Copy link

Hi!

Got this error in my browser console. Can you please fix it?

Details:
I'm showing multiple success notifications at different times asynchronously (for example, after uploading each of multiple files), probably the problem lies here:

methods: {
            showMe(obj){
                const item = {
                    id: this.list.length,

Seems like this.list.length is not a reliable source for unique ID. Maybe it's better to use RNG so that the problem will completely fly away?

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

No branches or pull requests

1 participant