Skip to content

Add checking stateless component default props #108

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

Merged
merged 3 commits into from
Oct 5, 2016

Conversation

CompuIves
Copy link
Contributor

Fixes #69,

With this PR we first search for defaultProps of the stateless component (if stateless) and then check using defaultProps or getDefaultProps, it will overwrite the defaultProps of the stateless component if any is found.

Let me know what you think of it, this is my first time working with AST, so I'm prepared for all feedback 😅 .

@CompuIves
Copy link
Contributor Author

Ah, I just read that it probably should in a seperate handler @fkling. If you still have this opinion I can move it to a seperate handler.

@sapegin
Copy link
Contributor

sapegin commented Sep 22, 2016

@fkling Could you please review this pull request?

@fkling
Copy link
Member

fkling commented Sep 27, 2016

Yeah, I think this is good to go, just needs to be rebased.

@fkling fkling added this to the v3 milestone Sep 27, 2016
@CompuIves CompuIves force-pushed the add_stateless_defaults branch from 5b14b55 to dae271c Compare October 1, 2016 11:30
@CompuIves
Copy link
Contributor Author

Rebased!

@fkling fkling merged commit 0386003 into reactjs:master Oct 5, 2016
@fkling
Copy link
Member

fkling commented Oct 5, 2016

Merged! Though I don't know when we are going to release a new version yet (I just released one, I guess I should have waited 😛 ).

@eisisig
Copy link

eisisig commented Oct 18, 2016

Any idea of a new version? I need this :)

@fkling
Copy link
Member

fkling commented Oct 18, 2016

I'll get something out within the next two days! (just came back from vacation)

@eisisig
Copy link

eisisig commented Oct 19, 2016

Looking forward to it! Hope you had a good one

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants