mirror of
https://github.com/immich-app/immich.git
synced 2025-07-09 03:04:16 -04:00
fix: timeline service mismatch state (#19612)
This commit is contained in:
parent
e60bc3c304
commit
fa5f30d9ca
@ -7,12 +7,15 @@ import 'package:immich_mobile/presentation/widgets/timeline/timeline.widget.dart
|
||||
import 'package:immich_mobile/providers/infrastructure/timeline.provider.dart';
|
||||
|
||||
@RoutePage()
|
||||
class MainTimelinePage extends StatelessWidget {
|
||||
class MainTimelinePage extends ConsumerWidget {
|
||||
const MainTimelinePage({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
return ProviderScope(
|
||||
key: ref.watch(timelineUsersProvider).value != null
|
||||
? ValueKey(ref.watch(timelineUsersProvider).value)
|
||||
: const ValueKey("main-timeline"),
|
||||
overrides: [
|
||||
timelineServiceProvider.overrideWith(
|
||||
(ref) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user