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