From 17e006b167627649effd434433fcc07417baee1d Mon Sep 17 00:00:00 2001 From: Pouria Delfanazari Date: Tue, 4 Nov 2025 14:54:19 -0800 Subject: [PATCH] feat: update feed cache on note deletion --- .../features/cards/lib/mutations/useRemoveCardFromLibrary.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/webapp/features/cards/lib/mutations/useRemoveCardFromLibrary.tsx b/src/webapp/features/cards/lib/mutations/useRemoveCardFromLibrary.tsx index 507b1c61..3a61a522 100644 --- a/src/webapp/features/cards/lib/mutations/useRemoveCardFromLibrary.tsx +++ b/src/webapp/features/cards/lib/mutations/useRemoveCardFromLibrary.tsx @@ -3,6 +3,7 @@ import { removeCardFromLibrary } from '../dal'; import { cardKeys } from '../cardKeys'; import { collectionKeys } from '@/features/collections/lib/collectionKeys'; import { noteKeys } from '@/features/notes/lib/noteKeys'; +import { feedKeys } from '@/features/feeds/lib/feedKeys'; export default function useRemoveCardFromLibrary() { const queryClient = useQueryClient(); @@ -15,6 +16,7 @@ export default function useRemoveCardFromLibrary() { onSuccess: () => { queryClient.invalidateQueries({ queryKey: cardKeys.all() }); queryClient.invalidateQueries({ queryKey: noteKeys.all() }); + queryClient.invalidateQueries({ queryKey: feedKeys.all() }); queryClient.invalidateQueries({ queryKey: collectionKeys.all() }); }, }); -- 2.51.2