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

Fix ReactPartialRenderer in production #10300

Merged
merged 1 commit into from
Jul 27, 2017
Merged

Conversation

keyz
Copy link
Contributor

@keyz keyz commented Jul 27, 2017

Fixes #10299. Seems like dangerousStyleValue and hyphenateStyleName are not dev-only helpers. In production, the entire __DEV__ branch gets removed and these 2 functions become undefined.

@aickin
Copy link
Contributor

aickin commented Jul 27, 2017

Hahaha, I seriously just committed and was about to open an identical PR when I saw you beat me to it.

Ideally, we'd run tests in prod mode as part of the build to catch bugs like these, but in the mean time, this is the right fix. I approve!

@keyz
Copy link
Contributor Author

keyz commented Jul 27, 2017

@aickin :) thank you for your work on the server renderer!

cc @gaearon for potentially covering this in #10273. In the meantime, do you want me to add a sanity check in ReactDOMProduction-test?

@gaearon
Copy link
Collaborator

gaearon commented Jul 27, 2017

Ideally, we'd run tests in prod mode

#10273 :-)

@gaearon gaearon merged commit 3abbcc4 into facebook:master Jul 27, 2017
@gaearon
Copy link
Collaborator

gaearon commented Jul 27, 2017

@keyanzhang Yes, please add a sanity check. Thanks!

@gaearon
Copy link
Collaborator

gaearon commented Jul 27, 2017

I added tests in #10308.

@gaearon
Copy link
Collaborator

gaearon commented Jul 27, 2017

Released in 16.0.0-beta.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants