Skip to content

Commit

Permalink
fix: Invalidate post detail after creating a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathaniel81 committed Jun 30, 2024
1 parent 872e837 commit b46e005
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/comments/PostComment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const PostComment = ({
const commentRef = useRef<HTMLDivElement>(null);
const { toast } = useToast();
const queryClient = useQueryClient();
const queryKey = ['postDetail'];
const queryKey = ['postComments'];

useOnClickOutside(commentRef, () => {
setIsReplying(false)
Expand Down

0 comments on commit b46e005

Please sign in to comment.