Make remote fetch more lazy

Sometime the local instance responses slower that would result in all the context are remote, which is not ideal.
This commit is contained in:
xmflsct 2023-01-06 18:31:33 +01:00
parent 3cac12fb9e
commit 5ce7d50f8f
1 changed files with 1 additions and 0 deletions

View File

@ -178,6 +178,7 @@ const TabSharedToot: React.FC<TabSharedStackScreenProps<'Tab-Shared-Toot'>> = ({
},
{
enabled:
query.isFetched &&
['public', 'unlisted'].includes(toot.visibility) &&
match?.domain !== getAccountStorage.string('auth.domain'),
staleTime: 0,