optimizations

This commit is contained in:
mertalev
2025-07-30 19:30:42 -04:00
parent 196f2a72f4
commit 6cea779b2d
23 changed files with 7004 additions and 329 deletions
@@ -4,9 +4,7 @@ import 'package:immich_mobile/providers/infrastructure/db.provider.dart';
import 'package:immich_mobile/domain/services/map.service.dart';
import 'package:immich_mobile/providers/user.provider.dart';
final mapRepositoryProvider = Provider<DriftMapRepository>(
(ref) => DriftMapRepository(ref.watch(driftProvider)),
);
final mapRepositoryProvider = Provider<DriftMapRepository>((ref) => DriftMapRepository(ref.watch(driftProvider)));
final mapServiceProvider = Provider<MapService>(
(ref) {
@@ -16,16 +14,11 @@ final mapServiceProvider = Provider<MapService>(
}
final mapService = ref.watch(mapFactoryProvider).remote(user.id);
ref.onDispose(mapService.dispose);
return mapService;
},
// Empty dependencies to inform the framework that this provider
// might be used in a ProviderScope
dependencies: [],
dependencies: const [],
);
final mapFactoryProvider = Provider<MapFactory>(
(ref) => MapFactory(
mapRepository: ref.watch(mapRepositoryProvider),
),
);
final mapFactoryProvider = Provider<MapFactory>((ref) => MapFactory(mapRepository: ref.watch(mapRepositoryProvider)));