Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
invalidate specific feed
Browse files Browse the repository at this point in the history
AmarTrebinjac committed Jan 17, 2025
1 parent f783008 commit 5048c40
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/shared/src/components/PostOptionsMenu.tsx
Original file line number Diff line number Diff line change
@@ -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'),
@@ -558,7 +557,7 @@ export default function PostOptionsMenu({
});

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

await showMessageAndRemovePost(

0 comments on commit 5048c40

Please sign in to comment.