Sanity Library Reference Docs
    Preparing search index...
    useQuery: {
        <QueryResponseResult = unknown, QueryResponseError = unknown>(
            query: string,
            params?: QueryParams,
            options?: UseQueryOptionsUndefinedInitial,
        ): QueryStoreState<QueryResponseResult, QueryResponseError> & WithEncodeDataAttribute;
        <QueryResponseResult = unknown, QueryResponseError = unknown>(
            query: string,
            params?: QueryParams,
            options?: UseQueryOptionsDefinedInitial<QueryResponseResult>,
        ): Omit<QueryStoreState<QueryResponseResult, QueryResponseError>, "data"> & {
            data: QueryResponseResult;
        } & WithEncodeDataAttribute;
    }

    Type declaration