From 76366a01d9745a2f8ca765eb21f829263c3285b1 Mon Sep 17 00:00:00 2001 From: Stepan Vladovskiy Date: Fri, 20 Sep 2024 23:56:25 +0000 Subject: [PATCH] feat: with setFollowingsLoaded(true) in Author View component. It is need if user already loaded, then after changeFollowing for unsetting Loading and show page --- src/components/Views/Author/Author.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Views/Author/Author.tsx b/src/components/Views/Author/Author.tsx index 1deaa13b..f465f1d8 100644 --- a/src/components/Views/Author/Author.tsx +++ b/src/components/Views/Author/Author.tsx @@ -76,6 +76,7 @@ export const AuthorView = (props: AuthorViewProps) => { setFollowers(myFollowers() || []) setFollowersLoaded(true) changeFollowing([...(myFollows?.topics || []), ...(myFollows?.authors || [])]) + setFollowingsLoaded(true) } else if (slug && !author()) { await loadAuthor({ slug }) const foundAuthor = authorsEntities()[slug]