A social knowledge tool for researchers built on ATProto

feat: sync collection page when removing and adding cards

Changed files
+6
src
webapp
features
+3
src/webapp/features/cards/lib/mutations/useAddCard.tsx
··· 37 37 queryClient.invalidateQueries({ 38 38 queryKey: collectionKeys.collection(id), 39 39 }); 40 + queryClient.invalidateQueries({ 41 + queryKey: collectionKeys.infinite(id), 42 + }); 40 43 }); 41 44 }, 42 45 });
+3
src/webapp/features/cards/lib/mutations/useRemoveCardFromCollections.tsx
··· 24 24 queryClient.invalidateQueries({ 25 25 queryKey: collectionKeys.collection(id), 26 26 }); 27 + queryClient.invalidateQueries({ 28 + queryKey: collectionKeys.infinite(id), 29 + }); 27 30 }); 28 31 }, 29 32 });