more tests added for Query

prefetchQuery support added
seperate methods for adding & removing listeners for events of both query & mutations
refetchInterval not working when used Query.fromOptions bug fixed
This commit is contained in:
Kingkor Roy Tirtho
2022-07-28 12:01:37 +06:00
parent 4e329169b5
commit 6d2952ae6a
14 changed files with 383 additions and 167 deletions
@@ -49,7 +49,7 @@ class BasicHookMutationExample extends HookWidget {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
"# Basic Mutation Hook Example",
"# Basic Mutation Hook Example (with failure & retry simulation)",
style: Theme.of(context).textTheme.headline5,
),
Padding(
@@ -74,7 +74,7 @@ class BasicHookMutationExample extends HookWidget {
"title": title,
"body": body,
"id": id,
}, onData: (data) {
}, onData: (data, variable, context) {
// resetting the form
titleController.text = "";
bodyController.text = "";