react-query-gql
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -5,2 +5,4 @@ # Changelog | ||
### [0.0.7](https://github.com/correttojs/graphql-codegen-apollo-next-ssr/compare/v0.0.6...v0.0.7) (2021-05-03) | ||
### [0.0.6](https://github.com/correttojs/graphql-codegen-apollo-next-ssr/compare/v0.0.5...v0.0.6) (2021-05-03) | ||
@@ -7,0 +9,0 @@ |
@@ -8,3 +8,3 @@ import { GraphQLClient } from 'graphql-request'; | ||
var _a, _b; | ||
return useQuery(`${(_b = (_a = document.definitions[0]) === null || _a === void 0 ? void 0 : _a.name) === null || _b === void 0 ? void 0 : _b.value}${JSON.stringify(variables)}`, () => gqlRequest(document, variables), options); | ||
return useQuery(`${(_b = (_a = document.definitions[0]) === null || _a === void 0 ? void 0 : _a.name) === null || _b === void 0 ? void 0 : _b.value}${JSON.stringify(variables)}`, () => gqlRequest(document, variables, options === null || options === void 0 ? void 0 : options.url), options); | ||
}; | ||
@@ -11,0 +11,0 @@ const useReactMutation = (document, options) => { |
import { TypedDocumentNode } from "@graphql-typed-document-node/core"; | ||
import { UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult } from "react-query"; | ||
export declare const useReactQuery: <TData, TVariables, TError = unknown>(document: TypedDocumentNode<TData, TVariables>, variables?: TVariables, options?: UseQueryOptions<TData, any, TData, import("react-query").QueryKey>) => UseQueryResult<TData, any>; | ||
export declare const useReactQuery: <TData, TVariables, TError = unknown>(document: TypedDocumentNode<TData, TVariables>, variables?: TVariables, options?: UseQueryOptions<TData, any, TData, import("react-query").QueryKey> & { | ||
url: string; | ||
}) => UseQueryResult<TData, any>; | ||
export declare const useReactMutation: <TData, TVariables, TError = unknown, TContext = unknown>(document: TypedDocumentNode<TData, TVariables>, options?: UseMutationOptions<TData, TError, TVariables, TContext> & { | ||
url: string; | ||
}) => UseMutationResult<TData, TError, TVariables, TContext>; |
{ | ||
"name": "react-query-gql", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "React Query Gql Client", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12636
265