mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 14:50:32 +00:00
fix: FastField re-rendering conditions.
This commit is contained in:
@@ -10,7 +10,6 @@ import {
|
|||||||
useAsyncDebounce,
|
useAsyncDebounce,
|
||||||
} from 'react-table';
|
} from 'react-table';
|
||||||
import { useSticky } from 'react-table-sticky';
|
import { useSticky } from 'react-table-sticky';
|
||||||
import intl from 'react-intl-universal';
|
|
||||||
|
|
||||||
import { useUpdateEffect } from 'hooks';
|
import { useUpdateEffect } from 'hooks';
|
||||||
import { saveInvoke } from 'utils';
|
import { saveInvoke } from 'utils';
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ function TableFastCell({ cell, row, index }) {
|
|||||||
|
|
||||||
export default memo(TableFastCell, (prevProps, nextProps) => {
|
export default memo(TableFastCell, (prevProps, nextProps) => {
|
||||||
if (
|
if (
|
||||||
|
prevProps.row.canExpand === nextProps.row.canExpand &&
|
||||||
|
prevProps.row.isExpanded === nextProps.row.isExpanded &&
|
||||||
prevProps.cell.value === nextProps.cell.value &&
|
prevProps.cell.value === nextProps.cell.value &&
|
||||||
prevProps.cell.maxWidth === nextProps.cell.maxWidth &&
|
prevProps.cell.maxWidth === nextProps.cell.maxWidth &&
|
||||||
prevProps.cell.width === nextProps.cell.width
|
prevProps.cell.width === nextProps.cell.width
|
||||||
|
|||||||
Reference in New Issue
Block a user