disconnect

external fun disconnect()(source)

The disconnect() method of the IntersectionObserver interface stops the observer watching all of its target elements for visibility changes.

MDN Reference