about summary refs log tree commit diff
path: root/src/view/screens
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2023-11-30 15:40:01 -0600
committerGitHub <noreply@github.com>2023-11-30 13:40:01 -0800
commit47b0d36b7393442857d3f4cfafd88c43defe6b6c (patch)
treebdbb0a2b6060f97e38aff687b2677877e7bb309b /src/view/screens
parent46b63accb8e73997f2a1bee24cfda220d29e048b (diff)
downloadvoidsky-47b0d36b7393442857d3f4cfafd88c43defe6b6c.tar.zst
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
Diffstat (limited to 'src/view/screens')
-rw-r--r--src/view/screens/Profile.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/view/screens/Profile.tsx b/src/view/screens/Profile.tsx
index 3e9a59929..8b4107ac4 100644
--- a/src/view/screens/Profile.tsx
+++ b/src/view/screens/Profile.tsx
@@ -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