Recompute row heights on coalesced updates

This commit is contained in:
Fedor Indutny
2021-09-09 13:47:11 -07:00
committed by GitHub
parent dee900479f
commit 1a682fa297

View File

@@ -160,7 +160,7 @@ export const ConversationList: React.FC<PropsType> = ({
if (shouldRecomputeRowHeights && list) { if (shouldRecomputeRowHeights && list) {
list.recomputeRowHeights(); list.recomputeRowHeights();
} }
}, [shouldRecomputeRowHeights]); });
const calculateRowHeight = useCallback( const calculateRowHeight = useCallback(
({ index }: { index: number }): number => { ({ index }: { index: number }): number => {