Open artboard-studio opened 7 years ago
Yes, in https://github.com/gmcquistin/react-throttle/blob/master/src/classes/processors/Base.js
If you raise a PR for that, I could merge it in. Or I can do it myself when I have a spare moment. :)
Thank you!
I am seeing the same in my project
I am not familiar with lodash. Who can we improve this?
@MoOx lodash.js is basically the same as underscore.js which are both utility belts for javascript (array and object etc. helper functions) which in my opinion are becoming redundant with all the new cool stuff added in ES6 and ES7 (though still some useful functions could be found in lodash.js or underscore.js)
The way to improve react-throttle library is to use only the debounce throttle functions that could found here instead of using a huge library like lodash.js just for these two functions. Unfortunately, I still haven't found the time to raise a PR for it, but the present library is the best one available for using throttle-debounce in react since it could get very tricky doing it manually.
By the way, which tool did you use to generate your screenshot? Seems to be useful.
I see multiple places that use lodash https://github.com/gmcquistin/react-throttle/search?utf8=✓&q=lodash
I think we should directly cherry pick modules.
Thanks for the feedback, guys. I will work on this soon and raise a PR for you guys to review.
@gmcquistin Since you are already transpiling with babel, consider using babel-plugin-lodash and it will do the cherry picking automatically for you during build time..
Hi
Is this plugin loading the entire lodash library? Any way to avoid that and just load the necessary things?