import { useMap } from '@react-hookz/web';
import { useRefWithInit } from "./useRefWithInit.js";
/**
 * Hook that combines useMap with lazy initialization. The init function runs once on the first
 * render.
 */
export function useMapWithInit(initFn) {
    const initialValue = useRefWithInit(initFn).current;
    return useMap(initialValue);
}
//# sourceMappingURL=useMapWithInit.js.map