diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-10-10 12:27:32 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-10 12:27:32 -0700 |
commit | d68b4ca856098679efa50295b942833f3f8246cf (patch) | |
tree | 11a54f97c16447eee8191f588bb9be90752a98f4 /src/view/shell/desktop/Search.tsx | |
parent | 60c0db03f75d7d8d00c42df6ec2b868830f40969 (diff) | |
download | voidsky-d68b4ca856098679efa50295b942833f3f8246cf.tar.zst |
Fix: fetch follows on desktop search for typeahead (#1660)
Diffstat (limited to 'src/view/shell/desktop/Search.tsx')
-rw-r--r-- | src/view/shell/desktop/Search.tsx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/view/shell/desktop/Search.tsx b/src/view/shell/desktop/Search.tsx index 53a58c39d..caecea4a8 100644 --- a/src/view/shell/desktop/Search.tsx +++ b/src/view/shell/desktop/Search.tsx @@ -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) |