#
@gqless/react#
Table of contents#
Interfaces- CreateReactClientOptions
- GraphQLHOC
- GraphQLHOCOptions
- MetaState
- PrepareQuery
- PrepareReactRender
- PreparedQuery
- ReactClient
- ReactClientDefaults
- UseGqlessStateOptions
- UseHydrateCache
- UseHydrateCacheOptions
- UseLazyQuery
- UseLazyQueryOptions
- UseLazyQueryState
- UseMetaState
- UseMutation
- UseMutationOptions
- UseMutationState
- UsePreparedQueryOptions
- UseQuery
- UseQueryOptions
- UseQueryState
- UseRefetch
- UseRefetchOptions
- UseRefetchState
- UseSubscription
- UseTransactionQuery
- UseTransactionQueryState
#
Type aliases#
FetchPolicyƬ FetchPolicy: cache-and-network | cache-first | network-only | no-cache
Defined in: common.ts:144
#
LazyFetchPolicyƬ LazyFetchPolicy: Exclude<FetchPolicy, cache-first>
Defined in: query/useLazyQuery.ts:13
#
OnErrorHandlerƬ OnErrorHandler: (error
: gqlessError) => void
#
Type declaration:â–¸ (error
: gqlessError): void
#
Parameters:Name | Type |
---|---|
error | gqlessError |
Returns: void
Defined in: common.ts:496
#
PropsWithServerCacheƬ PropsWithServerCache<T>: { cacheSnapshot?
: string } & T
Props with cacheSnapshot
that would be returned from prepareReactRender
#
Type parameters:Name | Type | Default |
---|---|---|
T | Record<string | number, unknown> | {} |
Defined in: ssr/ssr.ts:25
#
UseQueryReturnValueƬ UseQueryReturnValue<GeneratedSchema>: GeneratedSchema[query] & { $state
: UseQueryState }
#
Type parameters:Name | Type |
---|---|
GeneratedSchema | object |
GeneratedSchema.query | object |
Defined in: query/useQuery.ts:37
#
UseTransactionQueryOptionsƬ UseTransactionQueryOptions<TData, TVariables>: { fetchPolicy?
: FetchPolicy ; notifyOnNetworkStatusChange?
: boolean ; onCompleted?
: (data
: TData) => void ; onError?
: OnErrorHandler ; pollInterval?
: number ; retry?
: RetryOptions ; skip?
: boolean ; suspense?
: boolean ; variables?
: TVariables } & TVariables extends undefined ? { variables?
: TVariables } : { variables
: TVariables }
#
Type parameters:Name |
---|
TData |
TVariables |
Defined in: query/useTransactionQuery.ts:105
#
Functions#
createReactClientâ–¸ createReactClient<GeneratedSchema>(client
: GqlessClient<GeneratedSchema>, optsCreate?
: CreateReactClientOptions): ReactClient<GeneratedSchema>
#
Type parameters:Name | Type |
---|---|
GeneratedSchema | object |
GeneratedSchema.mutation | object |
GeneratedSchema.query | object |
GeneratedSchema.subscription | object |
#
Parameters:Name | Type |
---|---|
client | GqlessClient<GeneratedSchema> |
optsCreate | CreateReactClientOptions |
Returns: ReactClient<GeneratedSchema>
Defined in: client.ts:154