[TreeView] Hydration error from 7.19.0 onwards #14980
Labels
component: tree view
TreeView, TreeItem. This is the name of the generic UI component, not the React module!
regression
A bug, but worse
Steps to reproduce
Will not provide
Current behavior
The Tree and TreeItem components function as expected up until version @mui/x-tree-view: 7.18.0.
After some investigation, it appears that starting with version 7.19.0, the Tree component now requires a mandatory id attribute for each instance. If this attribute is not supplied, a hydration error occurs. In previous versions, this issue did not arise.
Additionally, we are not using version 2 of the Tree and TreeItem components, which were recently refactored, so we cannot confirm whether this behavior is consistent in those versions.
To avoid confusion, we should update our documentation to reflect this requirement or consider fixing the issue to prevent users from having to investigate the code themselves.
Expected behavior
No response
Context
No response
Your environment
npx @mui/envinfo
Search keywords: No duplicate found
The text was updated successfully, but these errors were encountered: