Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@tanstack/[email protected]
Patch Changes
Fix: Notify framework when count changes to update getTotalSize() (#1085)
Fixed an issue where
getTotalSize()would return stale values when thecountoption changed (e.g., during filtering or search operations). The virtualizer now automatically notifies the framework when measurement-affecting options change, ensuring the UI updates correctly without requiring manualuseMemoworkarounds.Before: When filtering items, the list container would maintain its previous height, causing excessive blank space (when count decreased) or inaccessible items (when count increased).
After: Height updates automatically when count changes, providing the correct user experience.
This fix applies to all framework adapters and has minimal performance impact (< 0.1ms per change).
Updated dependencies [
2542c5a,96e32a6]:@tanstack/[email protected]
Patch Changes
Fix: Notify framework when count changes to update getTotalSize() (#1085)
Fixed an issue where
getTotalSize()would return stale values when thecountoption changed (e.g., during filtering or search operations). The virtualizer now automatically notifies the framework when measurement-affecting options change, ensuring the UI updates correctly without requiring manualuseMemoworkarounds.Before: When filtering items, the list container would maintain its previous height, causing excessive blank space (when count decreased) or inaccessible items (when count increased).
After: Height updates automatically when count changes, providing the correct user experience.
This fix applies to all framework adapters and has minimal performance impact (< 0.1ms per change).
Updated dependencies [
2542c5a,96e32a6]:@tanstack/[email protected]
Patch Changes
Fix: Notify framework when count changes to update getTotalSize() (#1085)
Fixed an issue where
getTotalSize()would return stale values when thecountoption changed (e.g., during filtering or search operations). The virtualizer now automatically notifies the framework when measurement-affecting options change, ensuring the UI updates correctly without requiring manualuseMemoworkarounds.Before: When filtering items, the list container would maintain its previous height, causing excessive blank space (when count decreased) or inaccessible items (when count increased).
After: Height updates automatically when count changes, providing the correct user experience.
This fix applies to all framework adapters and has minimal performance impact (< 0.1ms per change).
Updated dependencies [
2542c5a,96e32a6]:@tanstack/[email protected]
Patch Changes
Fix: Notify framework when count changes to update getTotalSize() (#1085)
Fixed an issue where
getTotalSize()would return stale values when thecountoption changed (e.g., during filtering or search operations). The virtualizer now automatically notifies the framework when measurement-affecting options change, ensuring the UI updates correctly without requiring manualuseMemoworkarounds.Before: When filtering items, the list container would maintain its previous height, causing excessive blank space (when count decreased) or inaccessible items (when count increased).
After: Height updates automatically when count changes, providing the correct user experience.
This fix applies to all framework adapters and has minimal performance impact (< 0.1ms per change).
Updated dependencies [
2542c5a,96e32a6]:@tanstack/[email protected]
Patch Changes
Fix: Notify framework when count changes to update getTotalSize() (#1085)
Fixed an issue where
getTotalSize()would return stale values when thecountoption changed (e.g., during filtering or search operations). The virtualizer now automatically notifies the framework when measurement-affecting options change, ensuring the UI updates correctly without requiring manualuseMemoworkarounds.Before: When filtering items, the list container would maintain its previous height, causing excessive blank space (when count decreased) or inaccessible items (when count increased).
After: Height updates automatically when count changes, providing the correct user experience.
This fix applies to all framework adapters and has minimal performance impact (< 0.1ms per change).
Updated dependencies [
2542c5a,96e32a6]:@tanstack/[email protected]
Patch Changes
Fix: Notify framework when count changes to update getTotalSize() (#1085)
Fixed an issue where
getTotalSize()would return stale values when thecountoption changed (e.g., during filtering or search operations). The virtualizer now automatically notifies the framework when measurement-affecting options change, ensuring the UI updates correctly without requiring manualuseMemoworkarounds.Before: When filtering items, the list container would maintain its previous height, causing excessive blank space (when count decreased) or inaccessible items (when count increased).
After: Height updates automatically when count changes, providing the correct user experience.
This fix applies to all framework adapters and has minimal performance impact (< 0.1ms per change).
fix: stabilize lane assignments in masonry layout (#1080)
Added lane assignment caching to prevent items from jumping between lanes when viewport is resized. Previously, items could shift to different lanes during resize due to recalculating "shortest lane" with slightly different heights.
Changes:
laneAssignmentscache (Map<index, lane>) to persist lane assignmentslanesoption changes ormeasure()is calledcountdecreases (removes stale entries)@tanstack/[email protected]
Patch Changes
Fix: Notify framework when count changes to update getTotalSize() (#1085)
Fixed an issue where
getTotalSize()would return stale values when thecountoption changed (e.g., during filtering or search operations). The virtualizer now automatically notifies the framework when measurement-affecting options change, ensuring the UI updates correctly without requiring manualuseMemoworkarounds.Before: When filtering items, the list container would maintain its previous height, causing excessive blank space (when count decreased) or inaccessible items (when count increased).
After: Height updates automatically when count changes, providing the correct user experience.
This fix applies to all framework adapters and has minimal performance impact (< 0.1ms per change).
Updated dependencies [
2542c5a,96e32a6]: