add proper persistence expirations and collapse the connection section by default
This commit is contained in:
@@ -348,6 +348,7 @@ class PinnedAddonIds extends _$PinnedAddonIds {
|
||||
persist(
|
||||
ref.watch(riverpodDatabaseStorageProvider),
|
||||
key: 'PinnedAddonIds',
|
||||
options: const StorageOptions(cacheTime: StorageCacheTime.unsafe_forever),
|
||||
encode: (state) => jsonEncode(state.toList()),
|
||||
decode: (encoded) =>
|
||||
(jsonDecode(encoded) as List<dynamic>).cast<String>().toSet(),
|
||||
|
||||
Reference in New Issue
Block a user