Skip to content

Commit 73f744b

Browse files
committed
Fix: Notify framework when count changes to update getTotalSize()
1 parent 96e32a6 commit 73f744b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/virtual-core/src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,10 @@ export class Virtualizer<
646646
},
647647
{
648648
key: false,
649+
onChange: () => {
650+
// Notify when measurement options change as they affect total size
651+
this.notify(false)
652+
},
649653
},
650654
)
651655

0 commit comments

Comments
 (0)