Skip to content

Commit 29b3d73

Browse files
authored
fix(Table): optimize cell value retrieval for EditableCell (#3826)
1 parent f41f842 commit 29b3d73

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/components/table/EditableCell.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,8 @@ const EditableCell = (props: EditableCellProps) => {
7575
[col, row, colIndex, rowIndex],
7676
);
7777

78-
const cellValue = useMemo(() => get(row, col.colKey), [row, col.colKey]);
79-
80-
// eslint-disable-next-line react-hooks/exhaustive-deps
81-
const currentRow = useMemo(() => getCurrentRow(row, col.colKey, editValue), [col.colKey, editValue, row]);
78+
const cellValue = get(row, col.colKey);
79+
const currentRow = getCurrentRow(row, col.colKey, editValue);
8280

8381
const updateEditedCellValue = (val: any) => {
8482
setEditValue(val);

0 commit comments

Comments
 (0)