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

[docs] Update PropType to cover required props #1419

Merged
merged 2 commits into from Apr 19, 2021

Conversation

ZeeshanTamboli
Copy link
Member

@ZeeshanTamboli ZeeshanTamboli commented Apr 15, 2021

Fixes #982. The change improves the DX for developers that have ignored the TypeScript lint errors. It's not a bit easier to recover when not provided the right props:

Screenshot 2021-04-17 at 16 37 24

Also, we sort required props to be first as said in this comment first point.

@oliviertassinari oliviertassinari changed the title DataGrid: add rows prop PropType to be required [docs] Add rows prop PropType to be required Apr 15, 2021
@oliviertassinari oliviertassinari added the docs Improvements or additions to the documentation label Apr 15, 2021
@oliviertassinari oliviertassinari changed the title [docs] Add rows prop PropType to be required [docs] Update PropType to cover required props Apr 17, 2021
@oliviertassinari oliviertassinari added the component: data grid This is the name of the generic UI component, not the React module! label Apr 17, 2021
@dtassone dtassone merged commit da4cc4f into mui:master Apr 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: data grid This is the name of the generic UI component, not the React module! docs Improvements or additions to the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[DataGrid] with useState and useEffect generates an error
3 participants