mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
fix: timeline service uninitialised across routes (#19544)
This commit is contained in:
parent
f59b0bab5a
commit
15be3437bf
9 changed files with 95 additions and 139 deletions
|
|
@ -1,5 +1,3 @@
|
|||
import 'dart:async';
|
||||
|
||||
import 'package:auto_route/auto_route.dart';
|
||||
import 'package:flutter/widgets.dart';
|
||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||
|
|
@ -21,7 +19,7 @@ class RemoteTimelinePage extends StatelessWidget {
|
|||
final timelineService = ref
|
||||
.watch(timelineFactoryProvider)
|
||||
.remoteAlbum(albumId: albumId);
|
||||
ref.onDispose(() => unawaited(timelineService.dispose()));
|
||||
ref.onDispose(timelineService.dispose);
|
||||
return timelineService;
|
||||
},
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue