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
Honestly I don't know how to reconcile this with Promises. I thought this was needed to match debounce-fn but I can't make sense of return values of before:true, after: true function calls.
// Current `leading: true`constdebouncedFn=pDebounce(expensiveCall,200,{before: true,after: false});for(constiof[1,2,3]){debouncedFn(i).then(console.log);}//=> 1//=> 1//=> 1
// This proposalconstdebouncedFn=pDebounce(expensiveCall,200,{before: true,after: true});for(constiof[1,2,3]){debouncedFn(i).then(console.log);}//=> 1//=> 1//=> 1// No changes?
Like sindresorhus/debounce-fn#9
Semi-related #10
The text was updated successfully, but these errors were encountered: