diff --git a/ui/effects/use-lighthouse.js b/ui/effects/use-lighthouse.js index b7d958f5d..fc25a47fe 100644 --- a/ui/effects/use-lighthouse.js +++ b/ui/effects/use-lighthouse.js @@ -11,10 +11,11 @@ export default function useLighthouse( size?: number = 5, additionalOptions: any = {} ) { + const THROTTLE_MS = 1000; const [results, setResults] = React.useState(); const [loading, setLoading] = React.useState(); const queryString = query ? getSearchQueryString(query, { nsfw: showMature, size, ...additionalOptions }) : ''; - const throttledQuery = useThrottle(queryString, 500); + const throttledQuery = useThrottle(queryString, THROTTLE_MS); React.useEffect(() => { if (throttledQuery) {