chore(mobile): auto dispose future provider
This commit is contained in:
parent
47982641b2
commit
5e3bdc76b2
1 changed files with 2 additions and 1 deletions
|
@ -2,7 +2,8 @@ import 'package:hooks_riverpod/hooks_riverpod.dart';
|
|||
import 'package:immich_mobile/modules/memories/models/memory.dart';
|
||||
import 'package:immich_mobile/modules/memories/services/memory.service.dart';
|
||||
|
||||
final memoryFutureProvider = FutureProvider<List<Memory>?>((ref) async {
|
||||
final memoryFutureProvider =
|
||||
FutureProvider.autoDispose<List<Memory>?>((ref) async {
|
||||
final service = ref.watch(memoryServiceProvider);
|
||||
|
||||
return await service.getMemoryLane();
|
||||
|
|
Loading…
Reference in a new issue