material-table-core / core

Datatable for React based on material-ui's table with additional features. Support us at https://opencollective.com/material-table-core
https://material-table-core.github.io
MIT License
295 stars 146 forks source link

Warning: MTableHeader: Support for defaultProps will be removed from function components in a future major release #832

Closed jalbissimo closed 1 month ago

jalbissimo commented 7 months ago

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

  1. Open browser console
  2. Warning: MTableHeader: Support for defaultProps will be removed from function components in a future major release appears

Screenshots image

Desktop (please complete the following information):

Ggilb3rt commented 7 months ago

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.

rodrigoverasantis commented 7 months ago

Same here, but it does nothing other than bother.

Using :

Domino987 commented 6 months ago

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.

SheldonWBM commented 4 months ago

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. So, the person working on the PR could a) Ensure it works without defaultProps in React 18 and b) Use React 19 Beta to test compatibility.

stale[bot] commented 1 month ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You can reopen it if it required.