cache time & garbage collection support added
onData & onError callbacks WIP
This commit is contained in:
@@ -7,7 +7,11 @@ class AnotherComponent extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final lol = QueryBowl.of(context).getQuery<String, void>("greetings");
|
||||
final deadQuery =
|
||||
QueryBowl.of(context).getQuery<String, String>("external_data");
|
||||
if (lol?.data == null) return const CircularProgressIndicator();
|
||||
return Text("${lol!.data!} from AnotherComponent");
|
||||
return Text(
|
||||
"${lol!.data!} from AnotherComponent\nDeadQuery (It should be null after 10 seconds): ${deadQuery?.data}",
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user