A social knowledge tool for researchers built on ATProto

feat: update feed cache on note deletion

+2
+2
src/webapp/features/cards/lib/mutations/useRemoveCardFromLibrary.tsx
··· 3 3 import { cardKeys } from '../cardKeys'; 4 4 import { collectionKeys } from '@/features/collections/lib/collectionKeys'; 5 5 import { noteKeys } from '@/features/notes/lib/noteKeys'; 6 + import { feedKeys } from '@/features/feeds/lib/feedKeys'; 6 7 7 8 export default function useRemoveCardFromLibrary() { 8 9 const queryClient = useQueryClient(); ··· 15 16 onSuccess: () => { 16 17 queryClient.invalidateQueries({ queryKey: cardKeys.all() }); 17 18 queryClient.invalidateQueries({ queryKey: noteKeys.all() }); 19 + queryClient.invalidateQueries({ queryKey: feedKeys.all() }); 18 20 queryClient.invalidateQueries({ queryKey: collectionKeys.all() }); 19 21 }, 20 22 });