Skip to content
Snippets Groups Projects
Commit 2bfb57bb authored by Stephanie Freitag's avatar Stephanie Freitag
Browse files

HOLI-10926: increase debounce timer

parent ce1cbff4
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,7 @@ export function SearchTextInput({ initialQuery, onQueryChange, props }: SearchBo ...@@ -18,7 +18,7 @@ export function SearchTextInput({ initialQuery, onQueryChange, props }: SearchBo
const { t } = useTranslation() const { t } = useTranslation()
// Debouncing search requests as suggested on // Debouncing search requests as suggested on
// https://www.algolia.com/doc/guides/building-search-ui/going-further/improve-performance/js/#debouncing // https://www.algolia.com/doc/guides/building-search-ui/going-further/improve-performance/js/#debouncing
const queryHook = useDebounce((query, refine) => refine(query), 200) const queryHook = useDebounce((query, refine) => refine(query), 300)
const { query, refine } = useSearchBox({ ...props, queryHook }) const { query, refine } = useSearchBox({ ...props, queryHook })
const [inputValue, setInputValue] = useState(query) const [inputValue, setInputValue] = useState(query)
const inputRef = useRef<TextInput>(null) const inputRef = useRef<TextInput>(null)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment