import { useRef as f, useEffect as s } from "react";
function a(c, t) {
  const r = f(!0), e = f(null);
  s(() => (r.current = !0, () => {
    r.current = !1;
  }), []), s(() => {
    let u = e.current;
    r.current ? r.current = !1 : (!u || t.some((n, o) => !Object.is(n, u[o]))) && c(), e.current = t;
  }, t);
}
export {
  a as $
};
//# sourceMappingURL=useUpdateEffect-CCDx8D4X.es.js.map
