Skip to content

Commit

Permalink
Compose latest (#961)
Browse files Browse the repository at this point in the history
Co-authored-by: Ben Trengrove <bentrengrove@users.noreply.github.com>
Co-authored-by: Ben Trengrove <bentrengrove@google.com>
Co-authored-by: Jolanda Verhoef <JolandaVerhoef@users.noreply.github.com>
  • Loading branch information
4 people authored Aug 24, 2022
1 parent 9c2b05d commit 1694ecc
Showing 1 changed file with 4 additions and 2 deletions.
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

0 comments on commit 1694ecc

Please sign in to comment.