Skip to content
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

[pickers] Simplify the usePicker file structure #16680

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

flaviendelangle
Copy link
Member

@flaviendelangle flaviendelangle commented Feb 21, 2025

The length of the usePicker code shrinked a lot during the alpha and I think the code is a lot cleaner if the logic is inside usePicker with some utility hooks extrated.
The typing especially is a lot simpler, without a lot less inheritance.

What's next?

  • Use the manager on the picker (try to add methods in it to apply the default props).

@flaviendelangle flaviendelangle added the component: pickers This is the name of the generic UI component, not the React module! label Feb 21, 2025
@flaviendelangle flaviendelangle self-assigned this Feb 21, 2025
@mui-bot
Copy link

mui-bot commented Feb 21, 2025

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

Generated by 🚫 dangerJS against 4dd013f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: pickers This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants