feat: cache, client, query builder add and refreshOnQueryFnChange option

fix: retryer wrong logic
This commit is contained in:
Kingkor Roy Tirtho
2023-02-14 21:50:06 +06:00
parent 45b6f92316
commit 18584a3c57
136 changed files with 5106 additions and 110 deletions
@@ -12,5 +12,8 @@ abstract class DefaultConstants {
staleDuration: Duration(seconds: 10),
refreshInterval: Duration(seconds: 5),
refreshOnMount: true,
refreshOnQueryFnChange: false,
);
static const Duration cacheDuration = Duration(minutes: 5);
}
@@ -2,10 +2,12 @@ class RefreshConfig {
final Duration staleDuration;
final Duration refreshInterval;
final bool refreshOnMount;
final bool refreshOnQueryFnChange;
const RefreshConfig({
required this.staleDuration,
required this.refreshInterval,
required this.refreshOnMount,
required this.refreshOnQueryFnChange,
});
}