mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-12 11:55:23 +08:00
refactor(Table): rename cWRP to UNSAFE_cWRP
This commit is contained in:
parent
2c864b9bc6
commit
0be5e334e4
@ -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 => {
|
||||
|
Loading…
Reference in New Issue
Block a user