UNPKG

@cyberk/hyperion-sdk

Version:

Hyperion SDK from Cyberk

17 lines 673 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.useCosmWasmClient = void 0; const react_query_1 = require("@tanstack/react-query"); const getCosmWasmClient_1 = require("../query/getCosmWasmClient"); const useCosmWasmClient = ({ rpc, options: observerOptions, }) => { const { queryKey, ...options } = (0, getCosmWasmClient_1.getCosmWasmClientQueryOptions)({ rpc }); return (0, react_query_1.useQuery)({ ...observerOptions, ...options, staleTime: Infinity, // @ts-expect-error queryKey, }); }; exports.useCosmWasmClient = useCosmWasmClient; //# sourceMappingURL=useCosmWasmClient.js.map