15 lines
338 B
JavaScript
15 lines
338 B
JavaScript
|
"use client";
|
||
|
|
||
|
import { genTable } from 'rc-table';
|
||
|
/**
|
||
|
* Same as `rc-table` but we modify trigger children update logic instead.
|
||
|
*/
|
||
|
export default genTable((prev, next) => {
|
||
|
const {
|
||
|
_renderTimes: prevRenderTimes
|
||
|
} = prev;
|
||
|
const {
|
||
|
_renderTimes: nextRenderTimes
|
||
|
} = next;
|
||
|
return prevRenderTimes !== nextRenderTimes;
|
||
|
});
|