import { useRef as n, useEffect as r } from "react";
const f = (t, u) => {
  const e = n(!0);
  r(() => {
    if (e.current)
      return e.current = !1, t();
  }, u);
};
export {
  f as default
};
//# sourceMappingURL=useOnMount.js.map
