frontend client for gemstone. decentralised workplace app
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: invalidate queries correctly

serenity b74e73e2 db7fecc6

+4 -6
+4 -6
src/components/Invites/index.tsx
··· 167 167 useConstellationInvitesQuery(session); 168 168 const queryClient = useQueryClient(); 169 169 170 - const queryKeysToInvalidate = constellationInvitesQueryKey.concat([ 171 - "membership", 172 - session.did, 173 - ]); 174 - 175 170 const { mutate: mutateInvites, error: inviteMutationError } = useMutation({ 176 171 mutationFn: async (state: "accepted" | "rejected") => { 177 172 const inviteCommitRes = await getCommitFromFullAtUri(inviteAtUri); ··· 218 213 }, 219 214 onSuccess: async () => { 220 215 await queryClient.invalidateQueries({ 221 - queryKey: queryKeysToInvalidate, 216 + queryKey: ["membership", session.did], 217 + }); 218 + await queryClient.invalidateQueries({ 219 + queryKey: constellationInvitesQueryKey, 222 220 }); 223 221 }, 224 222 onError: () => {