Change language detection debouncing behavior to refresh at least once every 1.5 seconds (#33770)

This commit is contained in:
Claire 2025-01-29 10:26:06 +01:00 committed by GitHub
parent 82183d8a79
commit 85668becde
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -73,4 +73,4 @@ const guessLanguage = (text) => {
export const debouncedGuess = debounce((text, setGuess) => {
setGuess(guessLanguage(text));
}, 500, { leading: true, trailing: true });
}, 500, { maxWait: 1500, leading: true, trailing: true });