]> Untitled Git - lemmy-ui.git/commitdiff
remove hook entirely
authorAlec Armbruster <35377827+alectrocute@users.noreply.github.com>
Mon, 26 Jun 2023 16:16:32 +0000 (12:16 -0400)
committerJay Sitter <jay@jaysitter.com>
Tue, 27 Jun 2023 00:12:40 +0000 (20:12 -0400)
src/shared/components/post/post-listing.tsx

index 1bfd40e8bda283315bd1ae0957bf26a5851f1c1c..1c305e8f1bd49d7be6acb1c576936e7d01dca462 100644 (file)
@@ -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;
   }