Skip to content

React-Virtualizer: Ensure recalc of indexes on numItems change #34673

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Mitch-At-Work
Copy link
Contributor

Previous Behavior

Virtualizer would not recalc it's indexes when items were removed
If enough indexes were removed, it would enter whitespace without a recalc

New Behavior

Virtualizer now re-calcs on numItems change, correctly assuring index at all times

Related Issue(s)

@Mitch-At-Work Mitch-At-Work marked this pull request as ready for review June 17, 2025 23:11
@Mitch-At-Work Mitch-At-Work requested a review from a team as a code owner June 17, 2025 23:11
Copy link

github-actions bot commented Jun 17, 2025

📊 Bundle size report

✅ No changes found

Copy link

Pull request demo site: URL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Virtualizer stops rendering updates when items are removed from the end
1 participant