import { useRef as u } from "react";
var c = function(r) {
  return function(t, n) {
    var e = u(!1);
    r(function() {
      return function() {
        e.current = !1;
      };
    }, []), r(function() {
      if (!e.current)
        e.current = !0;
      else
        return t();
    }, n);
  };
};
export {
  c as createUpdateEffect,
  c as default
};
