refactor: client service
This commit is contained in:
parent
5afbdd0aa4
commit
21f09426cf
8 changed files with 459 additions and 491 deletions
|
|
@ -22,7 +22,7 @@ export function useSearchProfiles(search: string, limit: number) {
|
|||
setIsFetching(true)
|
||||
setProfiles([])
|
||||
try {
|
||||
const profiles = await client.searchProfilesFromCache(search, limit)
|
||||
const profiles = await client.searchProfilesFromLocal(search, limit)
|
||||
setProfiles(profiles)
|
||||
if (profiles.length >= limit) {
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue