From e4ee998500da6dc7a833070cde29f4f395ce8f8d Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 17 Nov 2025 19:44:34 -0600 Subject: [PATCH] Fix posting a comment not invalidating comment cache --- src/hooks/usePostComment.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/usePostComment.ts b/src/hooks/usePostComment.ts index 30fe3eb..84a2405 100644 --- a/src/hooks/usePostComment.ts +++ b/src/hooks/usePostComment.ts @@ -85,7 +85,7 @@ export function usePostComment() { onSuccess: (_, { root }) => { // Invalidate and refetch comments queryClient.invalidateQueries({ - queryKey: ['comments', root instanceof URL ? root.toString() : root.id] + queryKey: ['nostr', 'comments', root instanceof URL ? root.toString() : root.id] }); }, });