mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-03 08:07:21 +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 }) => {
|
||||
// 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]
|
||||
});
|
||||
},
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user