Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

FetchContext

interface FetchContext <TQueryFnData, TError, TData, TQueryKey extends QueryKey = QueryKey> {
fetchFn: () => unknown | Promise<unknown>;
fetchOptions?: FetchOptions;
meta: QueryMeta | undefined;
options: QueryOptions<TQueryFnData, TError, TData, any>;
queryKey: TQueryKey;
signal?: AbortSignal;
state: QueryState<TData, TError>;
}

§Type Parameters

§
TQueryFnData
[src]
§
TError
[src]
§
TData
[src]
§
TQueryKey extends QueryKey = QueryKey
[src]

§Properties

§
fetchFn: () => unknown | Promise<unknown>
[src]
§
fetchOptions?: FetchOptions
[src]
§
meta: QueryMeta | undefined
[src]
§
options: QueryOptions<TQueryFnData, TError, TData, any>
[src]
§
queryKey: TQueryKey
[src]
§
signal?: AbortSignal
[src]
§
state: QueryState<TData, TError>
[src]