Skip to content

Commit

Permalink
Change language detection debouncing behavior to refresh at least onc…
Browse files Browse the repository at this point in the history
…e every 1.5 seconds (mastodon#33770)
  • Loading branch information
ClearlyClaire authored Jan 29, 2025
1 parent 82183d8 commit 85668be
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 });

0 comments on commit 85668be

Please sign in to comment.