Skip to content

Commit

Permalink
Revert "precache the autosuggestion"
Browse files Browse the repository at this point in the history
This reverts commit 79c433e.
  • Loading branch information
haileyok committed Apr 27, 2024
1 parent 752ff70 commit 251cd27
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/view/screens/Search/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import {msg, Trans} from '@lingui/macro'
import {useLingui} from '@lingui/react'
import AsyncStorage from '@react-native-async-storage/async-storage'
import {useFocusEffect, useNavigation} from '@react-navigation/native'
import {useQueryClient} from '@tanstack/react-query'

import {useAnalytics} from '#/lib/analytics/analytics'
import {HITSLOP_10} from '#/lib/constants'
Expand All @@ -43,7 +42,6 @@ import {
SearchTabNavigatorParams,
} from 'lib/routes/types'
import {useTheme} from 'lib/ThemeContext'
import {precacheProfile} from 'state/queries/profile'
import {Pager} from '#/view/com/pager/Pager'
import {TabBar} from '#/view/com/pager/TabBar'
import {Post} from '#/view/com/post/Post'
Expand Down Expand Up @@ -476,7 +474,6 @@ export function SearchScreen(
) {
const navigation = useNavigation<NavigationProp>()
const theme = useTheme()
const queryClient = useQueryClient()
const textInput = React.useRef<TextInput>(null)
const {_} = useLingui()
const pal = usePalette('default')
Expand Down Expand Up @@ -761,8 +758,6 @@ export function SearchScreen(
profile={item}
moderation={moderateProfile(item, moderationOpts)}
onPress={() => {
precacheProfile(queryClient, item)

if (isWeb) {
setInputIsFocused(false)
} else {
Expand Down

0 comments on commit 251cd27

Please sign in to comment.