inokawa / virtua

A zero-config, fast and small (~3kB) virtual list (and grid) component for React, Vue, Solid and Svelte.
https://inokawa.github.io/virtua/
MIT License
1.35k stars 49 forks source link

Replace onRangeChange with handle methods #543

Closed inokawa closed 2 weeks ago

inokawa commented 2 weeks ago

378

This PR removes onRangeChange prop because it is an obstacle to achieving #378 . Instead, this PR adds startIndex/endIndex getter to handles and onScroll to WindowVirtualizer, that opens more flexible configuration.

inokawa commented 1 week ago

Additional discussions: https://github.com/inokawa/virtua/discussions/544