Skip to content

Commit 9c3e743

Browse files
perf(virtualized-lists): drop dead stale-index filter in ViewabilityHelper (#59590)
_onUpdateSync is only called right after this._viewableIndices is assigned (or from a timer guarded by _updateGeneration), so the filter always keeps every index. Remove it, per review feedback.
1 parent 47a9917 commit 9c3e743

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

‎packages/virtualized-lists/Lists/ViewabilityHelper.js‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -301,10 +301,6 @@ class ViewabilityHelper {
301301
props: CellMetricProps,
302302
) => ViewToken,
303303
) {
304-
// Filter out indices that have gone out of view since this call was scheduled.
305-
viewableIndicesToCheck = viewableIndicesToCheck.filter(ii =>
306-
this._viewableIndices.includes(ii),
307-
);
308304
const prevItems = this._viewableItems;
309305
const nextItems = new Map(
310306
viewableIndicesToCheck.map(ii => {

0 commit comments

Comments
 (0)