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