hooks/use_query
library
Functions
-
useQuery<TData, TParams, TError>({required Future<TData> queryFn(TParams variables), required TError errorTransformer(Object, StackTrace), required String cachePrefix, required TParams parameters, void onLoading(TParams parameters)?, void onSuccess(TData data)?, void onError(TError error)?, void onSettled()?, bool enableCache = true, bool autoFetch = true, List<String>? cacheTags, Duration? timeToLive, bool? enablePeriodicTTLRefetch})
→ QueryController<TData, TParams, TError>
-
Use query hook