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