"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=require("./useLayoutEffect.mjs.js"),u=require("react");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}const r=null!==(e=n(u).default.useInsertionEffect)&&void 0!==e?e:t.useLayoutEffect;exports.useEffectEvent=function(e){const t=u.useRef(null);return r((()=>{t.current=e}),[e]),u.useCallback((function(){const e=t.current;return null==e?void 0:e(...arguments)}),[])};
//# sourceMappingURL=useEffectEvent.mjs.js.map
