feat: cache, client, query builder add and refreshOnQueryFnChange option
fix: retryer wrong logic
This commit is contained in:
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user