Skip to content

Conversation

@flaviendelangle
Copy link
Member

@flaviendelangle flaviendelangle commented Oct 22, 2025

Fixes #14228
Closes #19426

Extracted PRs

In this PR:

  • The store object is created once on mount with all its method. There is no code run on every render to update its methods.
  • The contextValue.wrapRoot property have been replaced by manual JSX in the various Tree View components.
  • The parameters to pass to the store instead of the DOM are now hardcoded on a useMemo instead of being listed by each plugin.

Differences with the Scheduler stores

  • The product methods are stored in plugin instead of being defined by the store

    On the Scheduler, we call methods like store.setVisibleResources. For the Tree View, the equivalent would be store.resources.setVisibleResources.
    This is because the main store create several sub-classes for each main feature (focus, keyboard navigation, expansion, ...) that expose there own methods. This make the codebase a lot more scalable.

@flaviendelangle flaviendelangle self-assigned this Oct 22, 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 Oct 22, 2025
@mui-bot
Copy link

mui-bot commented Oct 22, 2025

Deploy preview: https://deploy-preview-20051--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 🔺+1.8KB(+2.77%) ▼-359B(-1.79%)
@mui/x-tree-view-pro 🔺+1.17KB(+1.34%) ▼-731B(-2.65%)

Details of bundle changes

Generated by 🚫 dangerJS against 6de2ba2

@github-actions
Copy link

github-actions bot commented Nov 4, 2025

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged. label Nov 5, 2025
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged. label Nov 6, 2025
@github-actions
Copy link

github-actions bot commented Nov 6, 2025

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged. label Nov 6, 2025
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged. label Nov 7, 2025
@github-actions
Copy link

github-actions bot commented Nov 7, 2025

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions github-actions bot added PR: out-of-date The pull request has merge conflicts and can't be merged. and removed PR: out-of-date The pull request has merge conflicts and can't be merged. labels Nov 7, 2025
@github-actions
Copy link

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged. label Nov 10, 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

2 participants