T
TanStack2y ago
sensitive-blue

Scroll on initial render?

Hello there I am having troubles using the scrollToIndex function of the virtual library on initial render. I put the scrollToIndex in a useEffect so that when the component is rendered I scroll to the last selected item. Is this currently possible. If I put a delay to the scrollToIndex function in the useEffect. For example 200ms it does scroll to the desired index after the timeout.
1 Reply
other-emerald
other-emerald2y ago
Did you end up finding a solution to this? @20 Slim Fingers

Did you find this page helpful?