1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-25 10:43:13 +02:00

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/models/memory.dart';
import 'package:immich_mobile/modules/memories/services/memory.service.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); final service = ref.watch(memoryServiceProvider);
return await service.getMemoryLane(); return await service.getMemoryLane();