import r from "react";
import o from "../../../rc-util/es/raf.mjs";
import a from "../../../rc-util/es/hooks/useEvent.mjs";
import "../../../rc-util/es/hooks/useLayoutEffect.mjs";
import "../../../rc-util/node_modules/react-is/index.mjs";
import "../../../rc-util/es/warning.mjs";
function R(t) {
  const e = r.useRef(!1), f = r.useRef(), u = a(t);
  return () => {
    e.current || (e.current = !0, u(), f.current = o(() => {
      e.current = !1;
    }));
  };
}
export {
  R as default
};
