TanStackT
TanStack4y ago
10 replies
sacred-rose

Infinite Scroll with set number of virtual items

I'm implementing infinite scroll. When the user gets near the last item, I'd like to add a few items to the virtualizer and remove the same number from the beginning.

Anyone got any tips on how to implement this behavior without causing a runaway effect?
Was this page helpful?