Skip to content

when should we execute stop of useIntersectionObserver, on unMount? #2307

Answered by darrylnoakes
mesqueeb asked this question in Q&A
Discussion options

You must be logged in to vote

It is done automatically.

This is the relevant line in the source: VueUse GitHub - useIntersectionObserver - Line 86.

The returned stop function is for if you want to stop the observer at some time other than unmount.

Replies: 1 comment

Comment options

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