Fixes miscache of hashtag following button
This commit is contained in:
+1
-1
@@ -187,7 +187,7 @@ fun GeoHashActionOptions(
|
|||||||
.follows
|
.follows
|
||||||
.observeAsState()
|
.observeAsState()
|
||||||
val isFollowingTag by
|
val isFollowingTag by
|
||||||
remember(userState) {
|
remember(userState, tag) {
|
||||||
derivedStateOf { userState?.user?.isFollowingGeohash(tag) ?: false }
|
derivedStateOf { userState?.user?.isFollowingGeohash(tag) ?: false }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -166,7 +166,7 @@ fun HashtagActionOptions(
|
|||||||
.follows
|
.follows
|
||||||
.observeAsState()
|
.observeAsState()
|
||||||
val isFollowingTag by
|
val isFollowingTag by
|
||||||
remember(userState) {
|
remember(userState, tag) {
|
||||||
derivedStateOf { userState?.user?.isFollowingHashtag(tag) ?: false }
|
derivedStateOf { userState?.user?.isFollowingHashtag(tag) ?: false }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user