Skip to content

useInView call for each component: Why do all return 'true' once the first element is in view? #540

Answered by thebuilder
bartonyoung asked this question in Q&A
Discussion options

You must be logged in to vote

Not sure what the components are doing. But most likely is your styling that causes all the components to start inside the viewport. Are you just rendering an empty ‹div› with your ref, until they come into view?

Replies: 1 comment 1 reply

Comment options

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

Answer selected by bartonyoung
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