-
Notifications
You must be signed in to change notification settings - Fork 377
fix(utils): export common utility functions and constants in react-core #1232
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
Conversation
|
PatternFly-React preview: https://1232-pr-patternfly-react-patternfly.surge.sh |
Pull Request Test Coverage Report for Build 4316
💛 - Coveralls |
| @@ -1,4 +1,5 @@ | |||
| export * from './components'; | |||
| export * from './layouts'; | |||
| export * from './internal'; | |||
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.
kind of semantics, but if it is exported it is not really internals anymore. Maybe rename to helpers or something similar?
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 was thinking the same thing this morning actually... i'm up for this if others are.
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.
helpers sounds good
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, works for me. Will update soon.
|
@priley86 looks like this one still needs some updates and conflicts resolved. |
|
will rebase this and update to |
f47997a to
fcdfdbb
Compare
|
*rebased and tested locally. Should be g2g. |
| export function debounce(func, wait) { | ||
| let timeout; | ||
| return (...args) => { | ||
| export function debounce(this: any, func: (...args: any[]) => any, wait: number) { |
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.
Method signature has changed, is it needed to use this as first argument?
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.
thanks... will rebase
tlabaj
left a comment
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.
LGTM
…re (patternfly#1232) * fix(utils): export common utility functions and constants used in react-core * renamed internal to helpers * update debounce method
What:
A minor minor addition to react-core to help out #1227
Additional issues:
none