when should we execute stop
of useIntersectionObserver
, on unMount?
#2307
-
when should we execute Or is this done for us? |
Beta Was this translation helpful? Give feedback.
Answered by
darrylnoakes
Oct 10, 2022
Replies: 1 comment
-
It is done automatically. This is the relevant line in the source: VueUse GitHub - useIntersectionObserver - Line 86. The returned |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mesqueeb
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.