import { useObservableEagerState, useObservableState } from "observable-hooks";
import { useMemo } from "react";
import { of } from "rxjs";
export function useObservableMemo(factory, deps) {
    return useObservableState(useMemo(() => factory() || of(undefined), deps));
}
export function useObservableEagerMemo(factory, deps) {
    return useObservableEagerState(useMemo(() => factory() || of(undefined), deps));
}
