Skip to content

Commit

Permalink
chore(mobile): auto dispose future provider
Browse files Browse the repository at this point in the history
  • Loading branch information
alextran1502 committed Jun 27, 2023
1 parent 4798264 commit 5e3bdc7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mobile/lib/modules/memories/providers/memory.provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 5e3bdc7

Please sign in to comment.