feat: working query builder, remove timeout from retryConfig
This commit is contained in:
@@ -5,12 +5,11 @@ abstract class DefaultConstants {
|
||||
static const RetryConfig retryConfig = RetryConfig(
|
||||
maxRetries: 3,
|
||||
retryDelay: Duration(seconds: 1),
|
||||
timeout: Duration(seconds: 5),
|
||||
);
|
||||
|
||||
static const RefreshConfig refreshConfig = RefreshConfig(
|
||||
staleDuration: Duration(seconds: 10),
|
||||
refreshInterval: Duration(seconds: 5),
|
||||
refreshInterval: Duration.zero,
|
||||
refreshOnMount: true,
|
||||
refreshOnQueryFnChange: false,
|
||||
);
|
||||
|
||||
@@ -1,11 +1,6 @@
|
||||
class RetryConfig {
|
||||
final int maxRetries;
|
||||
final Duration retryDelay;
|
||||
final Duration timeout;
|
||||
|
||||
const RetryConfig({
|
||||
required this.maxRetries,
|
||||
required this.retryDelay,
|
||||
required this.timeout,
|
||||
});
|
||||
const RetryConfig({required this.maxRetries, required this.retryDelay});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user