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:
parent
47982641b2
commit
5e3bdc76b2
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user