refactor(mobile): refactor user provider (#16358)

This commit is contained in:
Alex 2025-02-26 17:04:43 -06:00 committed by GitHub
parent c778516ce2
commit 8fbd650483
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 65 additions and 23 deletions

View file

@ -5,8 +5,12 @@ import 'package:immich_mobile/providers/locale_provider.dart';
import 'package:immich_mobile/services/timeline.service.dart';
import 'package:immich_mobile/widgets/asset_grid/asset_grid_data_structure.dart';
final singleUserTimelineProvider = StreamProvider.family<RenderList, int>(
final singleUserTimelineProvider = StreamProvider.family<RenderList, int?>(
(ref, userId) {
if (userId == null) {
return const Stream.empty();
}
ref.watch(localeProvider);
final timelineService = ref.watch(timelineServiceProvider);
return timelineService.watchHomeTimeline(userId);