@fadiDL what happened here was when you type n. real quick, you get debounced called with n then non-debounced called with n. - but debounced version would actually call non-debounced after timeout thus undoing the call with n. (erasing the dot). by always calling debounced version we make sure that timeout-ed call with n does not happen - it gets replaced with the 2nd n. call
@fadiDL what happened here was when you type
n.
real quick, you get debounced called withn
then non-debounced called withn.
- but debounced version would actually call non-debounced after timeout thus undoing the call withn.
(erasing the dot). by always calling debounced version we make sure that timeout-ed call withn
does not happen - it gets replaced with the 2ndn.
call