diff options
Diffstat (limited to 'src/view/screens/Profile.tsx')
-rw-r--r-- | src/view/screens/Profile.tsx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/view/screens/Profile.tsx b/src/view/screens/Profile.tsx index cc54ad3b2..9ca1b8c05 100644 --- a/src/view/screens/Profile.tsx +++ b/src/view/screens/Profile.tsx @@ -66,6 +66,7 @@ export function ProfileScreen({route}: Props) { error: profileError, refetch: refetchProfile, isLoading: isLoadingProfile, + isPlaceholderData: isPlaceholderProfile, } = useProfileQuery({ did: resolvedDid, }) @@ -85,12 +86,13 @@ export function ProfileScreen({route}: Props) { } }, [profile?.viewer?.blockedBy, resolvedDid]) - if (isLoadingDid || isLoadingProfile || !moderationOpts) { + // Most pushes will happen here, since we will have only placeholder data + if (isLoadingDid || isLoadingProfile || isPlaceholderProfile) { return ( <CenteredView> <ProfileHeader - profile={null} - moderation={null} + profile={profile ?? null} + moderationOpts={moderationOpts ?? null} isProfilePreview={true} /> </CenteredView> @@ -268,11 +270,11 @@ function ProfileScreenLoaded({ return ( <ProfileHeader profile={profile} - moderation={moderation} + moderationOpts={moderationOpts} hideBackButton={hideBackButton} /> ) - }, [profile, moderation, hideBackButton]) + }, [profile, moderationOpts, hideBackButton]) return ( <ScreenHider |