mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-05 05:28:20 +08:00
13 lines
427 B
TypeScript
13 lines
427 B
TypeScript
|
import { genTable } from 'rc-table';
|
||
|
import type { InternalTableProps } from './InternalTable';
|
||
|
|
||
|
/**
|
||
|
* Same as `rc-table` but we modify trigger children update logic instead.
|
||
|
*/
|
||
|
export default genTable((prev, next) => {
|
||
|
const { _renderTimes: prevRenderTimes } = prev as InternalTableProps<any>;
|
||
|
const { _renderTimes: nextRenderTimes } = next as InternalTableProps<any>;
|
||
|
|
||
|
return prevRenderTimes !== nextRenderTimes;
|
||
|
});
|