-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[TreeView] Rename nodeId
to itemId
#12418
Conversation
Deploy preview: https://deploy-preview-12418--material-ui-x.netlify.app/ Updated pages: |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
@@ -387,3 +387,14 @@ This will help create a new headless version of the `TreeItem` component based o | |||
) | |||
} | |||
``` | |||
|
|||
### ✅ Rename `nodeId` to `itemId` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably worth mentioning the nodeId
prop received by the ContentComponent
prop of TreeItem
as well (it's in this PR from what I saw)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WDYT, would it make sense to mention this section before any other section using itemId
(first is on line 59) to reduce confusion? 🤔
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work, LGTM. 👏 💯
Leaving a few nitpick comments. 😉
@@ -387,3 +387,14 @@ This will help create a new headless version of the `TreeItem` component based o | |||
) | |||
} | |||
``` | |||
|
|||
### ✅ Rename `nodeId` to `itemId` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WDYT, would it make sense to mention this section before any other section using itemId
(first is on line 59) to reduce confusion? 🤔
docs/data/migration/migration-tree-view-v6/migration-tree-view-v6.md
Outdated
Show resolved
Hide resolved
packages/x-tree-view/src/internals/plugins/useTreeViewFocus/useTreeViewFocus.ts
Outdated
Show resolved
Hide resolved
packages/x-tree-view/src/internals/plugins/useTreeViewFocus/useTreeViewFocus.types.ts
Show resolved
Hide resolved
Co-authored-by: Lukas <[email protected]> Signed-off-by: Nora <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
Signed-off-by: Nora <[email protected]> Co-authored-by: Lukas <[email protected]>
part of #12262
Follow-up:
Changelog
Breaking changes
The required
nodeId
prop used by theTreeItem
has been renamed toitemId
for consistency: