Skip to content

[tree view] Expose one hook per component to initialize the apiRef#20235

Merged
flaviendelangle merged 13 commits intomui:masterfrom
flaviendelangle:api-ref-hooks
Dec 4, 2025
Merged

[tree view] Expose one hook per component to initialize the apiRef#20235
flaviendelangle merged 13 commits intomui:masterfrom
flaviendelangle:api-ref-hooks

Conversation

@flaviendelangle
Copy link
Copy Markdown
Member

@flaviendelangle flaviendelangle commented Nov 6, 2025

Extracted from #20051

You can read this discussion to have the reasoning behind the new DX.
If you have any proposal I'm interested, this is the only impact on the public DX of #20051.

This PR does not solve #19426, the R generic is not used for now. But people can still migrate to those new hooks, so no issue releasing this PR before #20051.

@flaviendelangle flaviendelangle self-assigned this Nov 6, 2025
@flaviendelangle flaviendelangle added type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature. scope: tree view Changes related to the tree view. This includes TreeView, TreeItem. labels Nov 6, 2025
@mui-bot
Copy link
Copy Markdown

mui-bot commented Nov 6, 2025

Deploy preview: https://deploy-preview-20235--material-ui-x.netlify.app/

Updated pages:

Bundle size report

Bundle Parsed size Gzip size
@mui/x-data-grid 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-pro 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-premium 0B(0.00%) 0B(0.00%)
@mui/x-charts 0B(0.00%) 0B(0.00%)
@mui/x-charts-pro 0B(0.00%) 0B(0.00%)
@mui/x-charts-premium 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers-pro 0B(0.00%) 0B(0.00%)
@mui/x-tree-view 🔺+134B(+0.21%) 🔺+29B(+0.14%)
@mui/x-tree-view-pro 🔺+200B(+0.23%) 🔺+42B(+0.15%)

Details of bundle changes

Generated by 🚫 dangerJS against 73f93cb

@flaviendelangle flaviendelangle changed the title [tree view] Expose one hook per component to initialize the apiRef [tree view] Expose one hook per component to initialize the apiRef Nov 6, 2025
@flaviendelangle flaviendelangle marked this pull request as ready for review November 6, 2025 14:06
Copy link
Copy Markdown
Contributor

@noraleonte noraleonte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🎉 Thank you for your work here - it's a valuable DX improvement 😸

@flaviendelangle flaviendelangle merged commit 44a8861 into mui:master Dec 4, 2025
21 checks passed
@flaviendelangle flaviendelangle deleted the api-ref-hooks branch December 4, 2025 13:22
A-s-h-o-k pushed a commit to A-s-h-o-k/mui-x that referenced this pull request Dec 14, 2025
mapache-salvaje pushed a commit to mapache-salvaje/mui-x that referenced this pull request Dec 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: tree view Changes related to the tree view. This includes TreeView, TreeItem. type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants