[TreeView] Should warn when 2 items have the same ID #10230
Labels
component: tree view
TreeView, TreeItem. This is the name of the generic UI component, not the React module!
enhancement
This is not a bug, nor a new feature
Duplicates
Latest version
Steps to reproduce 🕹
Link to live example:
Steps:
Current behavior 😯
When parent and child TreeItem has same ids for some user error, and tries to expand children sometimes it freezes sometimes it just do not expand
Expected behavior 🤔
Make it crash if there is an id clash between parents and children
Context 🔦
My app constructs tree objects from the data coming from the API. Because of error on backend side, frontend started to receive list of objects with the same ids. So, when User expanding list of objects Tab freezes. It was really hard to find out why it freezes, as I was pretty sure that ids are unique.
Your environment 🌎
npx @mui/envinfo
The text was updated successfully, but these errors were encountered: