import u from "../../../../@babel/runtime/helpers/esm/objectSpread2.mjs";
import i from "../../../../rc-util/es/hooks/useLayoutEffect.mjs";
import * as n from "react";
var s = u({}, n), o = s.useInsertionEffect, c = function(e, t, f) {
  n.useMemo(e, f), i(function() {
    return t(!0);
  }, f);
}, m = o ? function(r, e, t) {
  return o(function() {
    return r(), e();
  }, t);
} : c;
export {
  m as default
};
