Skip to content

How to properly use ref with indiana drag scroll to set initial scroll position? #62

Answered by Norserium
dnh33 asked this question in Q&A
Discussion options

You must be logged in to vote

@dnh33, I can't answer on your question without additional details. As you can see, the code works in the sandbox, so it's not the library issue.

But I can assume, that the ProjectData (why its first letter is capital, by the way) is loaded after the ProjectCarousel mounted. Try to set ProjectData as the dependency of useEffect for the test purpose.

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@Norserium
Comment options

@dnh33
Comment options

@dnh33
Comment options

@Norserium
Comment options

@dnh33
Comment options

Answer selected by Norserium
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants