mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-06 00:37:23 +00:00
Fix posting a comment not invalidating comment cache
This commit is contained in:
1 file changed
+1
-1
@@ -85,7 +85,7 @@ export function usePostComment() {
|
|||||||
onSuccess: (_, { root }) => {
|
onSuccess: (_, { root }) => {
|
||||||
// Invalidate and refetch comments
|
// Invalidate and refetch comments
|
||||||
queryClient.invalidateQueries({
|
queryClient.invalidateQueries({
|
||||||
queryKey: ['comments', root instanceof URL ? root.toString() : root.id]
|
queryKey: ['nostr', 'comments', root instanceof URL ? root.toString() : root.id]
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user