-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
5144 rename throttle component changed #5151
5144 rename throttle component changed #5151
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me.
src/utils/index.js
Outdated
* Identical to throttleLeadingAndTrailing. | ||
* Exists for back-compatibility with 1.3.0. | ||
*/ | ||
module.exports.throttleComponentChanged = module.exports.throttleLeadingAndTrailing; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can just rename. Don't think many were relying on this. We can add a deprecation in next release notes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK - removed this. What needs to happen to make sure this gets tracked for the release note?
|
||
A context such as `this` can be provided to handle function binding for convenience. | ||
|
||
The same as [lodash's`throttle`][lodash], with `leading` and `trailing` options both set to `true` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wonder if this reference is a liability long term in case lodash API changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe, but the existing docs already reference loadash throttle (the same link)
This doesn't make the situation any worse, I think.
Thank you! |
Description:
PR as per #5144
Changes proposed: