Interface FetchContext<TQueryFnData, TError, TData, TQueryKey>

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

Type Parameters

Properties

fetchFn: (() => unknown)

Type declaration

    • (): unknown
    • Returns unknown

fetchOptions?: FetchOptions
options: QueryOptions<TQueryFnData, TError, TData, any>
queryKey: TQueryKey
signal?: AbortSignal
state: QueryState<TData, TError>

Generated using TypeDoc