import t from "react";
import { dequal as f } from "../../../../dequal@2.0.3/node_modules/dequal/dist/index.js";
function o(e) {
  const r = t.useRef(e), u = t.useRef(0);
  return f(e, r.current) || (r.current = e, u.current += 1), t.useMemo(() => r.current, [u.current]);
}
function m(e, r) {
  t.useEffect(e, o(r));
}
export {
  m as useDeepCompareEffect
};
//# sourceMappingURL=index.js.map
