WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Releases: TanStack/virtual

@tanstack/[email protected]

08 Dec 07:53
de8c12f

Choose a tag to compare

Patch Changes

  • Fix: Notify framework when count changes to update getTotalSize() (#1085)

    Fixed an issue where getTotalSize() would return stale values when the count option 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 manual useMemo workarounds.

    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]

08 Dec 07:53
de8c12f

Choose a tag to compare

Patch Changes

  • Fix: Notify framework when count changes to update getTotalSize() (#1085)

    Fixed an issue where getTotalSize() would return stale values when the count option 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 manual useMemo workarounds.

    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:

    • Added laneAssignments cache (Map<index, lane>) to persist lane assignments
    • Lane cache is cleared when lanes option changes or measure() is called
    • Lane cache is cleaned up when count decreases (removes stale entries)
    • Lane cache is cleared when virtualizer is disabled

@tanstack/[email protected]

08 Dec 07:53
de8c12f

Choose a tag to compare

Patch Changes

  • Fix: Notify framework when count changes to update getTotalSize() (#1085)

    Fixed an issue where getTotalSize() would return stale values when the count option 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 manual useMemo workarounds.

    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]

08 Dec 07:53
de8c12f

Choose a tag to compare

Patch Changes

  • Fix: Notify framework when count changes to update getTotalSize() (#1085)

    Fixed an issue where getTotalSize() would return stale values when the count option 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 manual useMemo workarounds.

    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]

08 Dec 07:53
de8c12f

Choose a tag to compare

Patch Changes

  • Fix: Notify framework when count changes to update getTotalSize() (#1085)

    Fixed an issue where getTotalSize() would return stale values when the count option 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 manual useMemo workarounds.

    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]

08 Dec 07:53
de8c12f

Choose a tag to compare

Patch Changes

  • Fix: Notify framework when count changes to update getTotalSize() (#1085)

    Fixed an issue where getTotalSize() would return stale values when the count option 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 manual useMemo workarounds.

    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]

08 Dec 07:53
de8c12f

Choose a tag to compare

Patch Changes

  • Fix: Notify framework when count changes to update getTotalSize() (#1085)

    Fixed an issue where getTotalSize() would return stale values when the count option 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 manual useMemo workarounds.

    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]

22 Oct 13:17
102a779

Choose a tag to compare

Patch Changes

  • fix(lit-virtual): create Virtualizer instance before hostConnected (#1061)

    When creating an instance of the reactive controller in connectedCallback, calling addController will synchronously call hostConnected on the controller. This means that this.virtualizer will still be undefined.

@tanstack/[email protected]

05 Aug 13:02
7d6e3c9

Choose a tag to compare

Major Changes

  • feat(angular-virtual): add support for angular 20 (#1040)

    BREAKING CHANGE: minimum Angular version is now 18.1.0

@tanstack/[email protected]

27 Jun 12:47
b461e78

Choose a tag to compare

Patch Changes