We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3a21ff commit 0b53334Copy full SHA for 0b53334
src/Body/index.tsx
@@ -49,6 +49,8 @@ function Body<RecordType>(props: BodyProps<RecordType>) {
49
getRowKey,
50
);
51
52
+ const rowKeys = React.useMemo(() => flattenData.map(item => item.rowKey), [flattenData]);
53
+
54
// =================== Performance ====================
55
const perfRef = React.useRef<PerfRecord>({
56
renderWithProps: false,
@@ -62,7 +64,6 @@ function Body<RecordType>(props: BodyProps<RecordType>) {
62
64
63
65
let rows: React.ReactNode;
66
if (data.length) {
- const rowKeys = flattenData.map(item => item.rowKey);
67
rows = flattenData.map((item, idx) => {
68
const { record, indent, index: renderIndex, rowKey } = item;
69
0 commit comments