import { equal } from "@wry/equality";
import * as React from "react";
export function useDeepMemo(memoFn, deps) {
    const ref = React.useRef(void 0);
    // eslint-disable-next-line react-compiler/react-compiler
    if (!ref.current || !equal(ref.current.deps, deps)) {
        // eslint-disable-next-line react-compiler/react-compiler
        ref.current = { value: memoFn(), deps };
    }
    // eslint-disable-next-line react-compiler/react-compiler
    return ref.current.value;
}
//# sourceMappingURL=useDeepMemo.js.map
