FormidableLabs / freactal

Clean and robust state management for React and React-like libs.
MIT License
1.65k stars 46 forks source link

Question about the necessity of lodash #24

Closed bali182 closed 7 years ago

bali182 commented 7 years ago

Quick search for the keyword lodash shows that 3 functions are used, and they are painlessly replaceable:

Would this something you are interested in?

divmain commented 7 years ago

Lodash methods tend to be faster than their native counterparts (for now), and since this is only pulled in on the server, it won't result in a larger bundle size. Is there a particular reason you'd remove it, or is mostly about removing a dependency?

bali182 commented 7 years ago

@divmain You are absolutely right! I just get triggered too quickly when I see lodash with destructuring imports in a small lib 😄

Didn't even know this lib has a server part, I was thinking it's purely for frontend state management.

divmain commented 7 years ago

No worries! And thanks for keeping me honest :)