import React__default from "react";
import { dequal } from "../../../../dequal@2.0.3/node_modules/dequal/dist/index.js";
function useDeepCompareMemoize(dependencies) {
  const dependenciesRef = React__default.useRef(dependencies);
  const signalRef = React__default.useRef(0);
  if (!dequal(dependencies, dependenciesRef.current)) {
    dependenciesRef.current = dependencies;
    signalRef.current += 1;
  }
  return React__default.useMemo(() => dependenciesRef.current, [signalRef.current]);
}
function useDeepCompareEffect(effect, dependencies) {
  React__default.useEffect(effect, useDeepCompareMemoize(dependencies));
}
export {
  useDeepCompareEffect
};
//# sourceMappingURL=index.js.map
