jayphelps / core-decorators

Library of stage-0 JavaScript decorators (aka ES2016/ES7 decorators but not accurate) inspired by languages that come with built-ins like @​override, @​deprecate, @​autobind, @​mixin and more. Popular with React/Angular, but is framework agnostic.
MIT License
4.52k stars 263 forks source link

Why is debounce and throttle depracated #144

Closed graysheeep closed 6 years ago

graysheeep commented 6 years ago

I think these two decorators useful, so why remark then as depracated?

toxic-johann commented 6 years ago

Things like debouncing, throttling, and other more opinionated decorators are being phased out in favor of lodash-decorators which wraps applicable lodash utilities as decorators. We don't want to duplicate the effort of lodash, which has years and years of robust testing and bugfixes.

According to Need lodash utilities as decorators?

jayphelps commented 6 years ago

Yep @toxic-johann is right. We found ourselves fixing bugs and adding features that have long since existed in lodash, so duplicating the effort wasn't a good idea. lodash-decorators wraps lodash providing them as decorators, so it's the suggested way to go moving forward. I think this is great for everyone.

Hope this makes sense!