mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 14:07:05 +05:30
common: add post to remember keys for localSavedState
(cherry picked from commit 876b5d8b8fe6e8bcedd414f346430a7c9ce6f4b4)
This commit is contained in:
parent
743b2db4ef
commit
e93baa84be
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ fun LobstersCard(
|
|||
postActions: PostActions,
|
||||
modifier: Modifier = Modifier,
|
||||
) {
|
||||
var localSavedState by remember(isSaved) { mutableStateOf(isSaved) }
|
||||
var localSavedState by remember(post, isSaved) { mutableStateOf(isSaved) }
|
||||
Box(modifier = modifier.clickable { postActions.viewPost(post.url, post.commentsUrl) }) {
|
||||
Column(
|
||||
modifier = Modifier.padding(horizontal = 16.dp, vertical = 4.dp).fillMaxWidth(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue