feat: pass variableKey to task fn in withVariableKey method

This commit is contained in:
Kingkor Roy Tirtho
2023-10-20 10:54:06 +06:00
parent 81a1fc1515
commit 53d5d7bc5e
8 changed files with 222 additions and 18 deletions
@@ -4,9 +4,9 @@ import 'package:flutter/material.dart';
Query<DataType, ErrorType> useQueryJob<DataType, ErrorType, ArgsType>({
required QueryJob<DataType, ErrorType, ArgsType> job,
required ArgsType args,
ValueChanged<DataType>? onData,
ValueChanged<ErrorType>? onError,
required ArgsType args,
}) {
return useQuery<DataType, ErrorType>(
job.queryKey,