Fix: fetch follows on desktop search for typeahead (#1660)

This commit is contained in:
Paul Frazee 2023-10-10 12:27:32 -07:00 committed by GitHub
parent 60c0db03f7
commit d68b4ca856
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View file

@ -22,6 +22,13 @@ export const DesktopSearch = observer(function DesktopSearch() {
)
const navigation = useNavigation<NavigationProp>()
// initial setup
React.useEffect(() => {
if (store.me.did) {
autocompleteView.setup()
}
}, [autocompleteView, store.me.did])
const onChangeQuery = React.useCallback(
(text: string) => {
setQuery(text)