Hide normal mute if muted by list, and invalidate profile query upon list mute (#2048)

* Hide normal mute if muted by list, and invalidate profile query upon list mute

* Prevent profile flashing
This commit is contained in:
Eric Bailey 2023-11-30 15:40:01 -06:00 committed by GitHub
parent 46b63accb8
commit 47b0d36b73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 19 deletions

View file

@ -50,13 +50,13 @@ export function ProfileScreen({route}: Props) {
data: resolvedDid,
error: resolveError,
refetch: refetchDid,
isFetching: isFetchingDid,
isInitialLoading: isInitialLoadingDid,
} = useResolveDidQuery(name)
const {
data: profile,
error: profileError,
refetch: refetchProfile,
isFetching: isFetchingProfile,
isInitialLoading: isInitialLoadingProfile,
} = useProfileQuery({
did: resolvedDid,
})
@ -69,7 +69,7 @@ export function ProfileScreen({route}: Props) {
}
}, [resolveError, refetchDid, refetchProfile])
if (isFetchingDid || isFetchingProfile || !moderationOpts) {
if (isInitialLoadingDid || isInitialLoadingProfile || !moderationOpts) {
return (
<CenteredView>
<ProfileHeader