chore(mobile): auto dispose future provider

This commit is contained in:
Alex Tran 2023-06-27 16:02:54 -05:00
parent 47982641b2
commit 5e3bdc76b2

View file

@ -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();