pota/use/intersection

pota/use/intersection wraps IntersectionObserver behind the same use* / on* pair you find on other document-level emitters (fullscreen, orientation, etc.), plus ref factories you attach with use:ref.

Multiple subscribers on the same node share one observer. Cleanup happens automatically when the owning scope disposes — the observer disconnects once the last subscriber unmounts.

Exports