mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
fix: FastField re-rendering conditions.
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user