Skip to content

Commit 04f12ca

Browse files
committed
feat: add changeset
1 parent 73f744b commit 04f12ca

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
'@tanstack/virtual-core': patch
3+
'@tanstack/react-virtual': patch
4+
'@tanstack/vue-virtual': patch
5+
'@tanstack/svelte-virtual': patch
6+
'@tanstack/solid-virtual': patch
7+
'@tanstack/angular-virtual': patch
8+
'@tanstack/lit-virtual': patch
9+
---
10+
11+
Fix: Notify framework when count changes to update getTotalSize()
12+
13+
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.
14+
15+
**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).
16+
17+
**After**: Height updates automatically when count changes, providing the correct user experience.
18+
19+
This fix applies to all framework adapters and has minimal performance impact (< 0.1ms per change).

0 commit comments

Comments
 (0)