"use strict";var e=require("react");exports.useTransition=(r,t)=>{let u=e.useRef(null),n=e.useRef([]);e.useEffect(()=>{u.current=r},[r]),e.useEffect(()=>{null!==n.current&&u.current&&"function"==typeof u.current&&u.current(...n.current),n.current=t},t)};
