solid-software / languagetool_textfield

🌐 Flutter text field that implements LanguageTool spellcheck.
BSD 3-Clause "New" or "Revised" License
34 stars 8 forks source link

Slow performance due to incorrect debounce #5

Closed solid-yuriiprykhodko closed 1 year ago

solid-yuriiprykhodko commented 1 year ago

Currently debounce waits 3 seconds before doing the API call. The first API call should fire (almost) right away -- and throttling should affect the next call request.

We should also think of some strategy to NOT ping the API before the user is done typing -- and that's where the current debounce mechanism comes in handy.

solid-yuriiprykhodko commented 1 year ago

Simple solution: