-
Notifications
You must be signed in to change notification settings - Fork 46.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
Warning added if defaultProps were defined as an instance property #9433
Conversation
abhaynikam
commented
Apr 14, 2017
- Added a warning if defaultProps were defined as an instance property
- Added related testcases for the changes done.
- Issue related to Warn in dev if shouldComponentUpdate is defined on PureComponent #9239
@aweary : can you help me here? All the testcases are passing on my local but in circle ci, I am not sure why are they failing. I was unable to run |
@abhaynikam CI was failing because the recorded fiber tests weren't up-to-date. What kind of issues did you have running the I went ahead and ran it for you and pushed it to your branch and CI is passing now 👍 |
@aweary : While running the script Error:
On Line: https://github.com/facebook/react/blob/master/scripts/fiber/record-tests#L83 |
Thanks @abhaynikam, looks like we're using object destructuring which will cause this script to fail in earlier versions on Node. We'll either need to bump up the minimum supported version for development or update the script. cc @gaearon which of those sounds preferable to you guys? |
Thanks for looking at it @aweary 👍 |
I’m OK with bumping the minimal required version (independent of this PR). |
I would maybe add "It will be ignored." for clarity to the warning. Otherwise it's not clear what the behavior is. Wanna do a followup PR? |
@gaearon : I will update the warning message in the follow up PR. |