Debounce on the search input
SH
search fires a request per keystroke
13:30
For a titles-only search over a list already in memory it does not need a request at all. Filter locally and the debounce question disappears.
13:31
SH
it'll hit the server once we index message bodies
13:35
Then debounce at 150ms and cancel the in-flight request on the next keystroke. The cancel matters more than the delay: without it a slow early request can land after a fast later one and overwrite the results with stale ones.
13:36
ReUI Chat can make mistakes. Check important info.