-
-
Notifications
You must be signed in to change notification settings - Fork 146
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
Warning: MTableHeader: Support for defaultProps will be removed from function components in a future major release #832
Comments
Hello ! Got same error here with MTableBodyRow, MTableCell and more. Using :
I don't know how to help, I find this article maybe he could help. |
Same here, but it does nothing other than bother. Using :
|
Seems like a deprecation. If you want to work on a PR to change it to the new way to do it, you are more than welcome. |
The deprecation warning is for React 19. React 19 is currently in beta. It is expected to be out of beta in June or July 2024. |
Describe the bug
A warning appears in the console saying "Warning: MTableHeader: Support for defaultProps will be removed from function components in a future major release"
To Reproduce
Have installed the following dependencies
Screenshots
![image](https://private-user-images.githubusercontent.com/37750567/303617257-5bbbd564-9c92-4c67-af9e-77927645ed92.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg5NTM2MTksIm5iZiI6MTcxODk1MzMxOSwicGF0aCI6Ii8zNzc1MDU2Ny8zMDM2MTcyNTctNWJiYmQ1NjQtOWM5Mi00YzY3LWFmOWUtNzc5Mjc2NDVlZDkyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjIxVDA3MDE1OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg3NmFkMTk4YjY4YjUxMDRhZDFmMzlmYTBhY2VlMDM4ODRlNTE2ZTcwOTdjNmRiYjZhN2Q5ZWVlMDlkZDg2MWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.zbYLCtoNqTP8YOJsyOyRzi7iJUeBCbKyDORpNeYGm2o)
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: