mirror of
https://github.com/immich-app/immich.git
synced 2024-11-15 09:59:00 -07:00
63ad3c8373
* chore(mobile): invalidate api repository for new sign in instasnce * add comments
17 lines
826 B
Dart
17 lines
826 B
Dart
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
|
import 'package:immich_mobile/repositories/activity_api.repository.dart';
|
|
import 'package:immich_mobile/repositories/album_api.repository.dart';
|
|
import 'package:immich_mobile/repositories/asset_api.repository.dart';
|
|
import 'package:immich_mobile/repositories/partner_api.repository.dart';
|
|
import 'package:immich_mobile/repositories/person_api.repository.dart';
|
|
import 'package:immich_mobile/repositories/user_api.repository.dart';
|
|
|
|
void invalidateAllApiRepositoryProviders(WidgetRef ref) {
|
|
ref.invalidate(userApiRepositoryProvider);
|
|
ref.invalidate(activityApiRepositoryProvider);
|
|
ref.invalidate(partnerApiRepositoryProvider);
|
|
ref.invalidate(albumApiRepositoryProvider);
|
|
ref.invalidate(personApiRepositoryProvider);
|
|
ref.invalidate(assetApiRepositoryProvider);
|
|
}
|