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:
parent
46b63accb8
commit
47b0d36b73
2 changed files with 33 additions and 19 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue