Reduce render cost of post controls and improve perceived responsiveness (#132)

* Move post control animations into conditional render and increase perceived responsiveness

* Remove log
This commit is contained in:
Paul Frazee
2023-02-01 13:09:20 -06:00
committed by GitHub
parent ad511bc574
commit 9889035a20
6 changed files with 165 additions and 79 deletions
+2 -2
View File
@@ -70,12 +70,12 @@ export const PostThreadItem = observer(function PostThreadItem({
})
}
const onPressToggleRepost = () => {
item
return item
.toggleRepost()
.catch(e => store.log.error('Failed to toggle repost', e))
}
const onPressToggleUpvote = () => {
item
return item
.toggleUpvote()
.catch(e => store.log.error('Failed to toggle upvote', e))
}