summaryrefslogtreecommitdiffstats
path: root/ui/src/components/post-listing.tsx
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2020-03-04 22:35:55 -0500
committerDessalines <tyhou13@gmx.com>2020-03-04 22:35:55 -0500
commitc999579c05ded42ea6ec68753d59b288123cc652 (patch)
tree831ce316ebdbd9c113dde3a5c7b29c53760ddbae /ui/src/components/post-listing.tsx
parentd14504763a90d9cc1bf91229ca0dde28a92a6bbc (diff)
Better tippy loading. Fixes #577
Diffstat (limited to 'ui/src/components/post-listing.tsx')
-rw-r--r--ui/src/components/post-listing.tsx13
1 files changed, 0 insertions, 13 deletions
diff --git a/ui/src/components/post-listing.tsx b/ui/src/components/post-listing.tsx
index e170c711..f8f19448 100644
--- a/ui/src/components/post-listing.tsx
+++ b/ui/src/components/post-listing.tsx
@@ -102,19 +102,6 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
}
}
- componentDidUpdate(prevProps: PostListingProps) {
- let prevPost = prevProps.post;
- let post = this.props.post;
- if (
- prevPost.saved !== post.saved ||
- prevPost.deleted !== post.deleted ||
- prevPost.locked !== post.locked ||
- prevPost.stickied !== post.stickied
- ) {
- setupTippy();
- }
- }
-
componentWillReceiveProps(nextProps: PostListingProps) {
this.state.my_vote = nextProps.post.my_vote;
this.state.upvotes = nextProps.post.upvotes;