Fix posting a comment not invalidating comment cache

This commit is contained in:
Alex Gleason committed 2025-11-17 19:44:34 -06:00
1 parent 000be63075
commit e4ee998500
1 file changed
+1 -1
+1 -1
View File
@@ -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]
});
},
});