From 5ce7d50f8f3ef729cc4c0b9a2b46183fb3a85305 Mon Sep 17 00:00:00 2001 From: xmflsct Date: Fri, 6 Jan 2023 18:31:33 +0100 Subject: [PATCH] Make remote fetch more lazy Sometime the local instance responses slower that would result in all the context are remote, which is not ideal. --- src/screens/Tabs/Shared/Toot.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/screens/Tabs/Shared/Toot.tsx b/src/screens/Tabs/Shared/Toot.tsx index 13e604c1..2624b2df 100644 --- a/src/screens/Tabs/Shared/Toot.tsx +++ b/src/screens/Tabs/Shared/Toot.tsx @@ -178,6 +178,7 @@ const TabSharedToot: React.FC> = ({ }, { enabled: + query.isFetched && ['public', 'unlisted'].includes(toot.visibility) && match?.domain !== getAccountStorage.string('auth.domain'), staleTime: 0,