refactor(Table): rename cWRP to UNSAFE_cWRP

This commit is contained in:
kristof0425 2019-08-13 16:55:48 +02:00 committed by 偏右
parent 2c864b9bc6
commit 0be5e334e4

View File

@ -179,7 +179,7 @@ export default class Table<T> extends React.Component<TableProps<T>, TableState<
});
}
componentWillReceiveProps(nextProps: TableProps<T>) {
UNSAFE_componentWillReceiveProps(nextProps: TableProps<T>) {
this.columns = nextProps.columns || normalizeColumns(nextProps.children as React.ReactChildren);
if ('pagination' in nextProps || 'pagination' in this.props) {
this.setState(previousState => {