From: Alec Armbruster <35377827+alectrocute@users.noreply.github.com>
Date: Mon, 26 Jun 2023 16:16:32 +0000 (-0400)
Subject: remove hook entirely
X-Git-Url: http://these/git/%22https:/join-lemmy.org/static/%7BlocalRss%7D?a=commitdiff_plain;h=81131d2804076860cdbb0deda89923b410da9483;p=lemmy-ui.git

remove hook entirely
---

diff --git a/src/shared/components/post/post-listing.tsx b/src/shared/components/post/post-listing.tsx
index c423b2c..ca9f9da 100644
--- a/src/shared/components/post/post-listing.tsx
+++ b/src/shared/components/post/post-listing.tsx
@@ -42,7 +42,6 @@ import {
   SavePost,
   TransferCommunity,
 } from "lemmy-js-client";
-import deepEqual from "lodash.isequal";
 import { relTags } from "../../config";
 import {
   BanType,
@@ -168,26 +167,6 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
     this.handleEditCancel = this.handleEditCancel.bind(this);
   }
 
-  componentWillReceiveProps(nextProps: PostListingProps) {
-    if (!deepEqual(this.props, nextProps)) {
-      this.setState({
-        purgeLoading: false,
-        reportLoading: false,
-        blockLoading: false,
-        lockLoading: false,
-        deleteLoading: false,
-        removeLoading: false,
-        saveLoading: false,
-        featureCommunityLoading: false,
-        featureLocalLoading: false,
-        banLoading: false,
-        addModLoading: false,
-        addAdminLoading: false,
-        transferLoading: false,
-      });
-    }
-  }
-
   get postView(): PostView {
     return this.props.post_view;
   }