import*as r from"react";import{useSafeLayoutEffect as e}from"./use-safe-layout-effect.js";function t(t,n){void 0===n&&(n=[]);var u=r.useRef(t);return e((()=>{u.current=t})),r.useCallback((function(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return null==u.current?void 0:u.current(...e)}),n)}export{t as useCallbackRef};
//# sourceMappingURL=use-callback-ref.js.map
