-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
deprecated @material-ui/core prop-type updates #2937
Conversation
Hi, I agree with @matthoffner this merge request needs to be released as soon as possible. Good work, |
That's weird. mat-ui removed a deprecation in a minor release! That could (and will) break stuff for people if mat-ui dependency is not patch limited. Anyways, thanks @matthoffner; was going to make this change until I saw your PR. |
Hi, can we get this fix release asap, |
For those who can't wait for this PR to be released, I wrote a small import MaterialTable, { MaterialTableProps } from 'material-table';
import { TablePagination, TablePaginationProps } from '@material-ui/core';
function PatchedPagination(props: TablePaginationProps) {
const {
ActionsComponent,
onChangePage,
onChangeRowsPerPage,
...tablePaginationProps
} = props;
return (
<TablePagination
{...tablePaginationProps}
// @ts-expect-error onChangePage was renamed to onPageChange
onPageChange={onChangePage}
onRowsPerPageChange={onChangeRowsPerPage}
ActionsComponent={(subprops) => {
const { onPageChange, ...actionsComponentProps } = subprops;
return (
// @ts-expect-error ActionsComponent is provided by material-table
<ActionsComponent
{...actionsComponentProps}
onChangePage={onPageChange}
/>
);
}}
/>
);
} Then you can use this like: <MaterialTable
components={{
Pagination: PatchedPagination,
}}
/> |
Hey, I'm also waiting for this fix to be merged! Could somebody approve it by any chance? Thanks ! Thanks @chelproc for the temporary fix! |
From what i gathered from the gitter chat the project has been abandoned and replaced by https://github.com/material-table-core/core. Someone feel free to correct me and i will remove the comment. |
This is blocking us from releasing the latest version of our product. would appreciate this merge the earliest. |
Hello @mbrn could you prioritize reviewing and releasing this to keep this project working with latest material ui changes. This PR is scoped to fixing a small bug change only, as specifically stated in the README. Thanks. |
This quick fix is increasing bundle size from 128kb to 400kb |
If you end up here like I did, check out https://github.com/material-table-core/website/blob/master/docs/getting-started/material-ui-v5.mdx |
- new file: src/Components/PatchedPagination.js - 참고 링크 : mbrn/material-table#2937 (comment)
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. |
For those who need @chelproc Javascript not type script version `import MaterialTable from 'material-table'; //javascript version return ( |
_this.props.data is not a function |
Related Issue
#2935
Description
Prop type updates from @material-ui/core deprecated prop types: