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

Encountered two children with the same key #253

Closed
mortalYoung opened this issue Jul 19, 2021 · 0 comments · Fixed by #255
Closed

Encountered two children with the same key #253

mortalYoung opened this issue Jul 19, 2021 · 0 comments · Fixed by #255
Assignees
Labels
bug Something isn't working

Comments

@mortalYoung
Copy link
Collaborator

Description

  • When append multiple data like
{
                id: // random
                children: [
                    {
                        id: 3,
                       // ...
                    },
                ],
            }

Expected

  • We get multiply problems without warning in console

What happened in actually

Warning: Encountered two children with the same key, `3_1`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted  the behavior is unsupported and could change in a future version.
@mortalYoung mortalYoung self-assigned this Jul 19, 2021
@wewoor wewoor added the bug Something isn't working label Jul 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants