Skip to content

Commit 50ee212

Browse files
committed
refactor: apply skipInitialOnChange and use isScrolling parameter in onChange notification
1 parent fe88885 commit 50ee212

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/virtual-core/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,9 +646,10 @@ export class Virtualizer<
646646
},
647647
{
648648
key: false,
649+
skipInitialOnChange: true,
649650
onChange: () => {
650651
// Notify when measurement options change as they affect total size
651-
this.notify(false)
652+
this.notify(this.isScrolling)
652653
},
653654
},
654655
)

0 commit comments

Comments
 (0)