tangled
alpha
login
or
join now
cosmik.network
/
semble
43
fork
atom
A social knowledge tool for researchers built on ATProto
43
fork
atom
overview
issues
13
pulls
pipelines
feat: update feed cache on note deletion
Pouria Delfanazari
4 months ago
17e006b1
21340664
+2
1 changed file
expand all
collapse all
unified
split
src
webapp
features
cards
lib
mutations
useRemoveCardFromLibrary.tsx
+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
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
19
+
queryClient.invalidateQueries({ queryKey: feedKeys.all() });
18
20
queryClient.invalidateQueries({ queryKey: collectionKeys.all() });
19
21
},
20
22
});