From 131e6f99597f133f06d98e0ba16e46c7648e9378 Mon Sep 17 00:00:00 2001 From: bluecloud <96812901+pitb2022@users.noreply.github.com> Date: Mon, 16 Oct 2023 15:12:49 +0800 Subject: [PATCH] fix(ArticleDetail): refetch article public after revise article --- src/views/ArticleDetail/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/ArticleDetail/index.tsx b/src/views/ArticleDetail/index.tsx index fe8c1cc696..6cae3624b0 100644 --- a/src/views/ArticleDetail/index.tsx +++ b/src/views/ArticleDetail/index.tsx @@ -446,8 +446,9 @@ const ArticleDetail = ({ setPrivateFetched(true) } - // reset state to private fetchable when URL query is changed useEffect(() => { + refetchPublic() + // reset state to private fetchable when URL query is changed setPrivateFetched(false) }, [mediaHash])