[tree view] Performance issue #14634
Labels
bug 🐛
Something doesn't work
component: tree view
TreeView, TreeItem. This is the name of the generic UI component, not the React module!
performance
Steps to reproduce
Steps:
Screen.Recording.2024-09-15.at.03.07.55.mov
Current behavior
It takes 200ms to respond, on a high-end laptop
Expected behavior
It takes 20ms to respond, on a high-end laptop
Context
I have noticed this from: https://pagespeed.web.dev/analysis/https-mui-com-material-ui-customization-default-theme/af76fe8h6e?form_factor=desktop. The field data says the page is too slow:
It was so much faster in https://v5-0-6.mui.com/customization/default-theme/ before we moved to use the tree view.
We could potentially use React.useDeferredValue like in mui/material-ui#43569 for the checkbox lag but it won't solve the root problem.
To be noted that #9685 might be needed to solve the switch all case, but for expanding a node of 5 items like in my screen recording, it can't be the solution.
Your environment
npx @mui/envinfo
Search keywords: -
The text was updated successfully, but these errors were encountered: