Fix gallery detail losing scroll position

This commit is contained in:
FooIbar authored and renovate[bot] committed 2024-09-09 18:14:48 +08:00
1 parent aab7ba0d53
commit 68932731b9
1 file changed
+1 -1
@@ -214,7 +214,7 @@ private fun List<GalleryTagGroup>.getArtistTag(): String? {
@Destination<RootGraph>
@Composable
fun AnimatedVisibilityScope.GalleryDetailScreen(args: GalleryDetailScreenArgs, navigator: DestinationsNavigator) = composing(navigator) {
var galleryInfo by remember {
var galleryInfo by rememberInVM {
val casted = args as? GalleryInfoArgs
mutableStateOf<GalleryInfo?>(casted?.galleryInfo)
}