1
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
"use client";
|
||||
|
||||
import { genVirtualTable } from '@rc-component/table';
|
||||
/**
|
||||
* Same as `rc-component/table` but we modify trigger children update logic instead.
|
||||
*/
|
||||
const RcVirtualTable = genVirtualTable((prev, next) => {
|
||||
const {
|
||||
_renderTimes: prevRenderTimes
|
||||
} = prev;
|
||||
const {
|
||||
_renderTimes: nextRenderTimes
|
||||
} = next;
|
||||
return prevRenderTimes !== nextRenderTimes;
|
||||
});
|
||||
export default RcVirtualTable;
|
||||
Reference in New Issue
Block a user