mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
Switch to lazyBox
This commit is contained in:
parent
d310c77fc8
commit
d08475d5af
6 changed files with 23 additions and 22 deletions
|
|
@ -26,7 +26,7 @@ class AssetNotifier extends StateNotifier<List<AssetResponseDto>> {
|
|||
|
||||
if (_assetCacheService.isValid() && state.isEmpty) {
|
||||
stopwatch.start();
|
||||
state = await _assetCacheService.getAsync();
|
||||
state = await _assetCacheService.get();
|
||||
debugPrint("Reading assets from cache: ${stopwatch.elapsedMilliseconds}ms");
|
||||
stopwatch.reset();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue