Skip to content

How to unobserve #504

Answered by thebuilder
bjrnschmdt asked this question in Q&A
Aug 25, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

You can pass in skip in the options to unobserve.

const { ref, inView, entry } = useInView({
  skip: true // or false
});

Don't use observe directly unless you have a good reason not to use the hook. :)

Replies: 1 comment 1 reply

Comment options

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

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