feat: with setFollowingsLoaded(true) in Author View component. It is need if user already loaded, then after changeFollowing for unsetting Loading and show page

This commit is contained in:
Stepan Vladovskiy 2024-09-20 23:56:25 +00:00
parent d496760fdb
commit 76366a01d9

View File

@ -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]