add proper persistence expirations and collapse the connection section by default
This commit is contained in:
+3
@@ -113,6 +113,9 @@ class SmallWebSessionController extends _$SmallWebSessionController {
|
||||
final persistFuture = persist(
|
||||
ref.watch(riverpodDatabaseStorageProvider),
|
||||
key: 'SmallWebSessionState',
|
||||
options: const StorageOptions(
|
||||
cacheTime: StorageCacheTime(Duration(days: 30)),
|
||||
),
|
||||
encode: (state) => jsonEncode(
|
||||
(state.value ?? SmallWebSessionState.initial(SmallWebSourceKind.kagi))
|
||||
.toJson(),
|
||||
|
||||
Reference in New Issue
Block a user