about summary refs log tree commit diff
path: root/src/view/com/auth/create/Step1.tsx
diff options
context:
space:
mode:
authorAnsh <anshnanda10@gmail.com>2023-07-28 08:29:37 -0700
committerGitHub <noreply@github.com>2023-07-28 10:29:37 -0500
commit38d78e16bffc9a25a45a4ad41caeef2c075daa26 (patch)
tree091bd4a86548899d64ad904c7f0fbf1fbb745778 /src/view/com/auth/create/Step1.tsx
parent8e9b8b6b36bc5bb68737b783ae6accfd435fda8e (diff)
downloadvoidsky-38d78e16bffc9a25a45a4ad41caeef2c075daa26.tar.zst
Search custom feeds (#1031)
* paginate custom feeds

* basic search

* update `@atproto/api`

* use search from the API

* debounce search for 200ms
Diffstat (limited to 'src/view/com/auth/create/Step1.tsx')
-rw-r--r--src/view/com/auth/create/Step1.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/view/com/auth/create/Step1.tsx b/src/view/com/auth/create/Step1.tsx
index 5038c8819..5d3dec430 100644
--- a/src/view/com/auth/create/Step1.tsx
+++ b/src/view/com/auth/create/Step1.tsx
@@ -37,7 +37,7 @@ export const Step1 = observer(({model}: {model: CreateAccountModel}) => {
   }, [setIsDefaultSelected, model])
 
   const fetchServiceDescription = React.useMemo(
-    () => debounce(() => model.fetchServiceDescription(), 1e3),
+    () => debounce(() => model.fetchServiceDescription(), 1e3), // debouce for 1 second (1e3 = 1000ms)
     [model],
   )