Skip to content
Discussion options

You must be logged in to vote

@krotname was right, but that felt very messy to me. So in 3.0.7 I fixed it so that it will use the value of initialScrollIndex at the time that data gets populated.

And also, doing a scrollToIndex in an effect will not work well. There's a very complex initial bootstrap window where items are still laying out and measuring, and adjusting positions to match the initial scroll, and a manual scroll in there will cause problems.

So ideally you can just update to 3.0.7 and initialScrollIndex will work as expected, and you can remove the useEffect.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@maxRN
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by maxRN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants