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