-
-
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] Refactor the tree view internals to prepare for headless API #13311
[TreeView] Refactor the tree view internals to prepare for headless API #13311
Conversation
Deploy preview: https://deploy-preview-13311--material-ui-x.netlify.app/ |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
cd5aaad
to
ca78141
Compare
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
const forwardedProps = {} as Omit<TProps, keyof PluginParams>; | ||
|
||
Object.keys(props).forEach((propName) => { | ||
const prop = props[propName as keyof typeof props] as any; |
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.
We had similar issues for normalizing plugins in charts without using any
. If one day you find a better solution than your current one, I would be interested :)
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.
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.
Seems good, but I don't know tree view well enough to spot room for improvement
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 good, nice improvement🚀 I really like that we now have a plugin list per component 💙
extractPluginParamsFromProps
insideuseTreeView
LogExpandedItems
doc example (remove support for theroot
slot)RichTreeView
can have plugin thatSimpleTreeView
does not have)