UNPKG

@cyberk/hyperion-sdk

Version:

Hyperion SDK from Cyberk

13 lines 480 B
import { useQuery } from "@tanstack/react-query"; import { getCosmWasmClientQueryOptions, } from "../query/getCosmWasmClient"; export const useCosmWasmClient = ({ rpc, options: observerOptions, }) => { const { queryKey, ...options } = getCosmWasmClientQueryOptions({ rpc }); return useQuery({ ...observerOptions, ...options, staleTime: Infinity, // @ts-expect-error queryKey, }); }; //# sourceMappingURL=useCosmWasmClient.js.map