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
If a debounced function with leading: true is called only once, the provided function is called twice on the first invocation. On subsequent invocations, it is only called once, after the timeout, since timerId isn't cleared.
The text was updated successfully, but these errors were encountered:
Would you care for creating a PR? since the nature of the project is NOT to create a drop in replacement for lodash (but to provide a learning space) I'd be leaning towards removing the leading option, to be honest
If a debounced function with
leading: true
is called only once, the provided function is called twice on the first invocation. On subsequent invocations, it is only called once, after the timeout, sincetimerId
isn't cleared.The text was updated successfully, but these errors were encountered: