Skip to content

Better debugging for duplicated-keys invariant violation #1349

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

Closed
coventry opened this issue Apr 3, 2014 · 5 comments
Closed

Better debugging for duplicated-keys invariant violation #1349

coventry opened this issue Apr 3, 2014 · 5 comments

Comments

@coventry
Copy link

coventry commented Apr 3, 2014

It would be great if there was a tool which could pull out and report on the elements of the virtual dom which match a given key. That would really help in tracking down the causes of error messages like "Invariant Violation: flattenChildren(...): Encountered two children with the same key, .NotTheActual/Key String. Children keys must be unique."

@sophiebits
Copy link
Collaborator

It's likely that in the future we'll have this case not crash at all, but just give a warning; see #566. We'd also like to be able to show problems like this in context in the dev tools.

@coventry
Copy link
Author

coventry commented Apr 3, 2014

Thanks, @spicyj. Either of those solutions would be very helpful.

@syranide
Copy link
Contributor

syranide commented Apr 7, 2014

#1364

@syranide
Copy link
Contributor

@spicyj @zpao This should probably be closed now?

@zpao
Copy link
Member

zpao commented Aug 15, 2014

👍 thanks for triaging!

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

4 participants