-
Notifications
You must be signed in to change notification settings - Fork 60
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
Keys not unique when grabbing _id's from MongoDB #182
Comments
Upon some reading: https://github.com/bencripps/react-redux-grid/blob/master/docs/CREATE_KEY_FROM.md It seems that even if your child is at another parent, if they have they same What's the correct structure to have the same child in multiple parents: i.e.:
Kind of how a child |
In this scenario, since your keys are not unique you shouldn't be specifying the |
@bencripps: so would i pass in |
That should work, but you could also not pass in the property at all. I believe it defaults to false. |
Originally I did not pass it in at all and was still getting this error. Let me try it with it explicitly set to |
Any update on this? |
I'm getting a unique key conflict, I know this is a react error, but I can seem to debug it. I make sure that all the ID's are unique in each array of children, but this still pops up:
My tree looks somewhat like a normal nested tree seen in most of this repo:
Sometimes the a nested array of children may have some of the same elements as other arrays of children, but every individual array of children will not have duplicated
id
. Been trying to debug this for a while, is there a way to quickly see what the two conflicts are? I checkRedux-Devtools
for the conflict but they're not in the state so I can't see which elements are in conflict.The text was updated successfully, but these errors were encountered: