feat: add devtools (WIP)

This commit is contained in:
Kingkor Roy Tirtho
2023-05-29 13:33:09 +06:00
parent 0fa58dcb84
commit 1b1f1cdc93
18 changed files with 547 additions and 2 deletions
@@ -58,4 +58,13 @@ class RefreshConfig {
refreshOnQueryFnChange ?? this.refreshOnQueryFnChange,
);
}
Map<String, dynamic> toJson() {
return {
'staleDuration': staleDuration.toString(),
'refreshInterval': refreshInterval.toString(),
'refreshOnMount': refreshOnMount,
'refreshOnQueryFnChange': refreshOnQueryFnChange,
};
}
}
@@ -38,4 +38,11 @@ class RetryConfig {
retryDelay: retryDelay ?? this.retryDelay,
);
}
Map<String, dynamic> toJson() {
return {
'maxRetries': maxRetries,
'retryDelay': retryDelay.toString(),
};
}
}