virtual
virtual copied to clipboard
fix(virtual-core): scroll to index should only retry if still targeting the same index
🎯 Changes
When calling scrollToIndex in a tight loop, it no longer retries scrolls for outdated indices.
✅ Checklist
- [x] I have followed the steps listed in the Contributing guide.
- [x] I have tested and linted this code locally.
- [x] I have generated a changeset for this PR, or this PR should not release a new version.
🦋 Changeset detected
Latest commit: 0a640987f19d1732d76383b697033fd347535fbc
The changes in this PR will be included in the next version bump.
This PR includes changesets to release 7 packages
| Name | Type |
|---|---|
| @tanstack/virtual-core | Patch |
| @tanstack/angular-virtual | Patch |
| @tanstack/lit-virtual | Patch |
| @tanstack/react-virtual | Patch |
| @tanstack/solid-virtual | Patch |
| @tanstack/svelte-virtual | Patch |
| @tanstack/vue-virtual | Patch |
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR