import { b as f } from "./mergeProps-B-cqsBhL.es.js";
import o, { useRef as n, useCallback as $ } from "react";
var a;
const u = (a = o.useInsertionEffect) !== null && a !== void 0 ? a : f;
function d(c) {
  const r = n(null);
  return u(() => {
    r.current = c;
  }, [
    c
  ]), $((...t) => {
    const e = r.current;
    return e?.(...t);
  }, []);
}
export {
  d as $
};
//# sourceMappingURL=useEffectEvent-B4Fd4l1o.es.js.map
