starry / dist /assets /useIntersection-c0d72ee4.js
k-l-lambda's picture
update: export from starry-refactor 2026-02-21 11:16
8c7d858
import{r as u}from"./umi-e07d95da.js";var a=function(e,r){var t=u.useState(null),o=t[0],n=t[1];return u.useEffect(function(){if(e.current&&typeof IntersectionObserver=="function"){var s=function(i){n(i[0])},c=new IntersectionObserver(s,r);return c.observe(e.current),function(){n(null),c.disconnect()}}return function(){}},[e.current,r.threshold,r.root,r.rootMargin]),o};const v=a;export{v as u};