Skip to content
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

feat(linear-progress): typescript #526

Merged
merged 116 commits into from Dec 21, 2018

Conversation

moog16
Copy link
Contributor

@moog16 moog16 commented Dec 14, 2018

related #48

isMounted_ = false;
bufferElement_: React.RefObject<HTMLDivElement> = React.createRef();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove trailing underscore.

<Tag className={this.classes} role="progressbar" {...otherProps}>
{bufferingDots && <div className="mdc-linear-progress__buffering-dots"></div>}
<div className="mdc-linear-progress__buffer" ref={this.bufferElement_}></div>
// @ts-ignore
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on why this ignore is needed.

Also, why do we need to destructure all of the props here if most of them are unused ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

they need to be defined so that they don't appear in ...otherProps. It is like black listing

isMounted_ = false;
bufferElement: React.RefObject<HTMLDivElement> = React.createRef();
primaryBarElement_: React.RefObject<HTMLDivElement> = React.createRef();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove trailing underscore.

isMounted_ = false;
bufferElement: React.RefObject<HTMLDivElement> = React.createRef();
primaryBarElement_: React.RefObject<HTMLDivElement> = React.createRef();
foundation_: MDCLinearProgressFoundation;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove trailing underscore.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually can use the private keyword!

@moog16
Copy link
Contributor Author

moog16 commented Dec 19, 2018

isMounted is a reserved react class term. So I have to keep the underscore on the isMounted_.

@moog16 moog16 changed the base branch from fix/coverage-typescript to feat/two-typescript December 20, 2018 00:52
@googlebot
Copy link

So there's good news and bad news.

👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there.

😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request.

Note to project maintainer: This is a terminal state, meaning the cla/google commit status will not change from this state. It's up to you to confirm consent of all the commit author(s), set the cla label to yes (if enabled on your project), and then merge this pull request when appropriate.

@moog16 moog16 merged commit 8f3ebc8 into feat/two-typescript Dec 21, 2018
@moog16 moog16 deleted the feat/typescript-linear-progres branch December 21, 2018 22:07
moog16 pushed a commit that referenced this pull request Dec 27, 2018
moog16 pushed a commit that referenced this pull request Dec 28, 2018
moog16 pushed a commit that referenced this pull request Dec 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants