Skip to content

Commit

Permalink
chore: add comments describing fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
mary-ext committed Dec 10, 2023
1 parent 40c4c98 commit 5c97476
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/com/components/dialogs/DeletePostConfirmDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ const DeletePostConfirmDialog = (props: DeletePostConfirmDialogProps) => {
},
onSuccess: () => {
if (parentUri) {
// Re-fetch the parent post to get an accurate view over the reply count
queryClient.fetchQuery({
queryKey: getPostKey(post.uid, parentUri),
queryFn: getPost,
Expand Down

0 comments on commit 5c97476

Please sign in to comment.