Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compose latest #961

Merged
merged 9 commits into from
Aug 24, 2022
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,10 @@ fun HomeFeedWithArticleDetailsScreen(
// Crossfade between different detail posts
Crossfade(targetState = hasPostsUiState.selectedPost) { detailPost ->
// Get the lazy list state for this detail view
val detailLazyListState by derivedStateOf {
articleDetailLazyListStates.getValue(detailPost.id)
val detailLazyListState by remember {
derivedStateOf {
articleDetailLazyListStates.getValue(detailPost.id)
}
}

// Key against the post id to avoid sharing any state between different posts
Expand Down