Bluesky app fork with some witchin' additions 💫

remove trailing period from query term in `useActorAutocompleteQuery` (#3765)

* remove trailing period from query term

* Rm useMemo

---------

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>

authored by hailey.at

Dan Abramov and committed by
GitHub
fdb5ffff b4015d10

+5 -1
+5 -1
src/state/queries/actor-autocomplete.ts
··· 24 24 const moderationOpts = useModerationOpts() 25 25 const {getAgent} = useAgent() 26 26 27 - prefix = prefix.toLowerCase() 27 + prefix = prefix.toLowerCase().trim() 28 + if (prefix.endsWith('.')) { 29 + // Going from "foo" to "foo." should not clear matches. 30 + prefix = prefix.slice(0, -1) 31 + } 28 32 29 33 return useQuery<AppBskyActorDefs.ProfileViewBasic[]>({ 30 34 staleTime: STALE.MINUTES.ONE,