Skip to content

Conversation

@Mitch-At-Work
Copy link
Contributor

Previously, we had a safety check to ensure we don't re-render if the virtualizer is at the 'end' of the array.

While this check is important, if the number of items rendered is modified, we do want to ensure it recalculates the index based on the new array length.

This check should ensure that when items are removed we recalc where nessecary at the BASE virtualizer hook (similar to what we added for the dynamic virtualizer check).

@Mitch-At-Work Mitch-At-Work requested review from a team as code owners September 29, 2025 21:01
@Mitch-At-Work Mitch-At-Work enabled auto-merge (squash) September 29, 2025 21:23
@Mitch-At-Work Mitch-At-Work merged commit 0be80a0 into main Sep 30, 2025
9 checks passed
@Mitch-At-Work Mitch-At-Work deleted the user/mifraser/fix-invalid-array-length branch September 30, 2025 18:43
marcosmoura added a commit to marcosmoura/fluentui-contrib that referenced this pull request Oct 15, 2025
…tion-upgrade' into test/react-draggable-dialog/add-more-complete-test-cases

* fix/react-draggable-dialog/improve-performance-after-motion-upgrade: (32 commits)
  fix: update swc config for tests
  fix: remove eslint comment
  fix: formatting
  fix: upgrade dnd-kit
  fix: revert changes to yarn.lock
  applying package updates
  fix(houdini-utils): Give wrapper element a different id  (microsoft#520)
  applying package updates
  fix(react-virtualizer): add missing react-jsx-runtime dependency (microsoft#518)
  applying package updates
  fix(houdini-utils): make DOM access to utils safe (microsoft#514)
  fix (react-virtualizer): Ensure IO buffer gets removed, not added from calculation (microsoft#516)
  fix (react-virtualizer): Ensure base virtualizer hook recalcs array if numItems change at end (microsoft#515)
  chore: update peer dependencies for React and @types/react to support versions v19 (microsoft#494)
  applying package updates
  fix (react-virtualizer): Ensure accurate positioning for dynamically changing sizes (microsoft#511)
  chore: upgrade form-data and axios to fix security vulnerabilities (microsoft#509)
  applying package updates
  feat (react-virtualizer): Enable complex dynamic virtualization with add and remove items (microsoft#508)
  chore: add cxe-prg to react-virtualizer codeowners (microsoft#510)
  ...
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.

3 participants