Update profile preview to use react-query (#1890)

This commit is contained in:
Paul Frazee 2023-11-13 14:57:53 -08:00 committed by GitHub
parent 9fca7b3af6
commit 47204d9551
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 70 additions and 14 deletions

View file

@ -66,7 +66,7 @@ export const ProfileScreen = withAuthRequired(function ProfileScreenImpl({
}
}, [resolveError, refetchDid, refetchProfile])
if (isFetchingDid || isFetchingProfile) {
if (isFetchingDid || isFetchingProfile || !moderationOpts) {
return (
<CenteredView>
<View style={s.p20}>