queryFn property

QueryFn<TQueryData>? queryFn
final

Fetches the data. Unset, the query uses the function registered for its key with QueryClient.setQueryDefaults; with none there either, a fetch fails with MissingQueryFunctionError.

Implementation

final QueryFn<TQueryData>? queryFn;