You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As mentioned in sodiray/radash#362, the cancel method should clear the timeout rather than cause the pending timeout to do nothing. The expected behavior is that calling the debounced function after cancelling it will result in an eventual invocation.
constfn=debounce({delay: 100},()=>console.log('hi'))fn()fn()fn.cancel()fn()fn()// Logs "hi" once 100 ms after this call.
As mentioned in sodiray/radash#362, the
cancel
method should clear the timeout rather than cause the pending timeout to do nothing. The expected behavior is that calling the debounced function after cancelling it will result in an eventual invocation./cc @QTimort and @MarlonPassos-git as you both participated in sodiray/radash#362
The text was updated successfully, but these errors were encountered: