Skip to content

Intersection observer on Safari #548

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

You must be logged in to vote

My guess would be it never triggers because the <span> is empty.

  • Have you tried with threshold: 0?
  • Make it a <div>?
  • Give it a height?

It might also make sense for you to use the new onChange option - It would allow you to remove the useEffect:
https://github.com/thebuilder/react-intersection-observer#options

Replies: 3 comments 1 reply

Comment options

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

Comment options

You must be logged in to vote
0 replies
Answer selected by thebuilder
Comment options

You must be logged in to vote
0 replies
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