Skip to content

UseGraphQLOptions

Type Alias: UseGraphQLOptions<TData, TVariables>

Section titled “Type Alias: UseGraphQLOptions<TData, TVariables>”

UseGraphQLOptions<TData, TVariables> = GraphQLOptions<TData, TVariables> & object

Defined in: packages/fetch-kit/src/react/use-graphql.ts:7

Options for useGraphQL.

optional deps?: ReadonlyArray<unknown>

Dependencies that, when changed, trigger a refetch.

optional enabled?: boolean

When false, the query will not run automatically. Defaults to true.

TData

TVariables