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