import{useRef as r,useEffect as t}from"react";let e=(e,n)=>{let u=r(null),c=r([]);t(()=>{u.current=e},[e]),t(()=>{null!==c.current&&u.current&&"function"==typeof u.current&&u.current(...c.current),c.current=n},n)};export{e as useTransition};
