From 5c9747686477a05e745da9348a28eff9e1d35465 Mon Sep 17 00:00:00 2001 From: Mary Date: Sun, 10 Dec 2023 20:25:31 +0700 Subject: [PATCH] chore: add comments describing fetch --- app/com/components/dialogs/DeletePostConfirmDialog.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/app/com/components/dialogs/DeletePostConfirmDialog.tsx b/app/com/components/dialogs/DeletePostConfirmDialog.tsx index d6978d83..132eb519 100644 --- a/app/com/components/dialogs/DeletePostConfirmDialog.tsx +++ b/app/com/components/dialogs/DeletePostConfirmDialog.tsx @@ -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,