Fixes miscache of hashtag following button

This commit is contained in:
Vitor Pamplona 2024-08-14 17:16:02 -04:00
parent 69f5371ab8
commit 6b193894bd
2 changed files with 2 additions and 2 deletions

View File

@ -187,7 +187,7 @@ fun GeoHashActionOptions(
.follows
.observeAsState()
val isFollowingTag by
remember(userState) {
remember(userState, tag) {
derivedStateOf { userState?.user?.isFollowingGeohash(tag) ?: false }
}

View File

@ -166,7 +166,7 @@ fun HashtagActionOptions(
.follows
.observeAsState()
val isFollowingTag by
remember(userState) {
remember(userState, tag) {
derivedStateOf { userState?.user?.isFollowingHashtag(tag) ?: false }
}