Skip to content

Commit

Permalink
try invalidate userblocked request key
Browse files Browse the repository at this point in the history
  • Loading branch information
AmarTrebinjac committed Jan 17, 2025
1 parent b18fc2f commit b91a7b9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/shared/src/components/PostOptionsMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import {
useToastNotification,
} from '../hooks';
import type { AllFeedPages } from '../lib/query';
import { generateQueryKey } from '../lib/query';
import { generateQueryKey, RequestKey } from '../lib/query';
import AuthContext from '../contexts/AuthContext';
import { LogEvent, Origin } from '../lib/log';
import { usePostMenuActions } from '../hooks/usePostMenuActions';
Expand All @@ -73,7 +73,6 @@ import {
import { isFollowingContent } from '../hooks/contentPreference/types';
import { useIsSpecialUser } from '../hooks/auth/useIsSpecialUser';
import { useActiveFeedContext } from '../contexts';
import { SharedFeedPage } from './utilities';

const ContextMenu = dynamic(
() => import(/* webpackChunkName: "contextMenu" */ './fields/ContextMenu'),
Expand Down Expand Up @@ -558,7 +557,7 @@ export default function PostOptionsMenu({
});

client.invalidateQueries({
queryKey: generateQueryKey(SharedFeedPage.MyFeed, user),
queryKey: generateQueryKey(RequestKey.UserBlocked),
});

await showMessageAndRemovePost(
Expand Down

0 comments on commit b91a7b9

Please sign in to comment.