version 4.0.0 + grouped options = console error: "Warning: Encountered two children with the same key, `react-select-2-option-0-[object Object]"
See original GitHub issuein 4.0.0 version when we click on select component to open it we get:
Warning: Encountered two children with the same key, `react-select-2-option-0-[object Object]`. 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.
in div (created by Group)
in div (created by EmotionCssPropInternal)
in EmotionCssPropInternal (created by Group)
in Group (created by Select)
in div (created by EmotionCssPropInternal)
in EmotionCssPropInternal (created by MenuList)
in MenuList (created by ScrollManager)
in ScrollManager (created by MenuPlacer)
in div (created by EmotionCssPropInternal)
in EmotionCssPropInternal (created by Menu)
in Menu (created by MenuPlacer)
in MenuPlacer (created by Select)
in div (created by EmotionCssPropInternal)
in EmotionCssPropInternal (created by SelectContainer)
in SelectContainer (created by Select)
in Select (created by StateManager)
in StateManager
in Unknown
we can see it here (link from page - grouped example) https://codesandbox.io/s/7utj1?module=/example
Issue Analytics
- State:
- Created 3 years ago
- Comments:9
Top Results From Across the Web
Encountered Two Children with the Same Key — React Fix
The Problem When you are rendering React components in a map function inside the render function, you must provide a key prop to...
Read more >Two children with the same key in React - Stack Overflow
Closed 4 years ago. Application works, my classes really adds a new element but I see below warning in console! Warning: Encountered two...
Read more >Encountered two children with the same key (React)
The React error "Encountered two children with the same key" occurs when two or more of the elements we return from the map()...
Read more >Fix for Warning: Encountered two children with the same key ...
Set a key for each MultiValue, React.cloneElement(child, { key: child.props.children }) this works if the labels for your options are unique. If ...
Read more >Encountered two children with the same key, Keys ... - YouTube
How to solve Warning : Encountered two children with the same key, Keys should be unique so that components maintain their identity across ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You are really great people, all of you. I admire all the work behind this fine component back from v1
@mrudowski Should be resolved now in 4.0.2.