fl_query_hooks library

Functions

useInfiniteQuery<DataType, ErrorType, PageType>(String queryKey, InfiniteQueryFn<DataType, PageType> queryFn, {required InfiniteQueryNextPage<DataType, PageType> nextPage, required PageType initialPage, RetryConfig? retryConfig, RefreshConfig? refreshConfig, JsonConfig<DataType>? jsonConfig, ValueChanged<PageEvent<DataType, PageType>>? onData, ValueChanged<PageEvent<ErrorType, PageType>>? onError, bool enabled = true, List<Object?>? keys}) → InfiniteQuery<DataType, ErrorType, PageType>
useInfiniteQueryJob<DataType, ErrorType, PageType, ArgsType>({required InfiniteQueryJob<DataType, ErrorType, PageType, ArgsType> job, required ArgsType args, ValueChanged<PageEvent<DataType, PageType>>? onData, ValueChanged<PageEvent<ErrorType, PageType>>? onError, List<Object?>? keys}) → InfiniteQuery<DataType, ErrorType, PageType>
useMutation<DataType, ErrorType, VariablesType, RecoveryType>(String mutationKey, MutationFn<DataType, VariablesType> mutationFn, {RetryConfig? retryConfig, MutationOnDataFn<DataType, RecoveryType>? onData, MutationOnErrorFn<ErrorType, RecoveryType>? onError, MutationOnMutationFn<VariablesType, RecoveryType>? onMutate, List<String>? refreshQueries, List<String>? refreshInfiniteQueries, List<Object?>? keys}) → Mutation<DataType, ErrorType, VariablesType>
useMutationJob<DataType, ErrorType, VariablesType, RecoveryType, ArgsType>({required MutationJob<DataType, ErrorType, VariablesType, RecoveryType, ArgsType> job, MutationOnDataFn<DataType, RecoveryType>? onData, MutationOnErrorFn<ErrorType, RecoveryType>? onError, MutationOnMutationFn<VariablesType, RecoveryType>? onMutate, required ArgsType args, List<Object?>? keys}) → Mutation<DataType, ErrorType, VariablesType>
useQuery<DataType, ErrorType>(String queryKey, QueryFn<DataType> queryFn, {DataType? initial, RetryConfig? retryConfig, RefreshConfig? refreshConfig, JsonConfig<DataType>? jsonConfig, ValueChanged<DataType>? onData, ValueChanged<ErrorType>? onError, bool enabled = true}) → Query<DataType, ErrorType>
useQueryClient() → QueryClient
useQueryJob<DataType, ErrorType, ArgsType>({required QueryJob<DataType, ErrorType, ArgsType> job, required ArgsType args, ValueChanged<DataType>? onData, ValueChanged<ErrorType>? onError}) → Query<DataType, ErrorType>