Skip to content

react-virtuoso@4.18.9

Choose a tag to compare

@github-actions github-actions released this 26 Jun 07:38
· 90 commits to main since this release
7cf51b6

Patch Changes

  • #1444 0c68e81 Thanks @Luccas-carvalho! - Harden scroll-target and initial-index handling:
    • Clamp the initial top-most item index to the available range, so an out-of-range initialTopMostItemIndex (for example after the data set shrinks) no longer starts the list at a blank or mid-list position.
    • Stop mutating the location object passed to scrollToIndex; normalizeIndexLocation now applies its defaults to a shallow copy.
    • Treat a default-positioned initialTopMostItemIndex of { index: 0 } the same as 0, avoiding a redundant initial scroll and a delayed followOutput.