ant-design/components/table/RcTable/index.tsx

13 lines
428 B
TypeScript
Raw Normal View History

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;
});