fix: FastField re-rendering conditions.

This commit is contained in:
a.bouhuolia
2021-08-03 08:52:38 +02:00
parent 4a0bd842e9
commit d1d20e9cb5
2 changed files with 2 additions and 1 deletions

View File

@@ -10,7 +10,6 @@ import {
useAsyncDebounce,
} from 'react-table';
import { useSticky } from 'react-table-sticky';
import intl from 'react-intl-universal';
import { useUpdateEffect } from 'hooks';
import { saveInvoke } from 'utils';

View File

@@ -7,6 +7,8 @@ function TableFastCell({ cell, row, index }) {
export default memo(TableFastCell, (prevProps, nextProps) => {
if (
prevProps.row.canExpand === nextProps.row.canExpand &&
prevProps.row.isExpanded === nextProps.row.isExpanded &&
prevProps.cell.value === nextProps.cell.value &&
prevProps.cell.maxWidth === nextProps.cell.maxWidth &&
prevProps.cell.width === nextProps.cell.width