Skip to content

Fix ReactPartialRenderer in production#10300

Merged
gaearon merged 1 commit into
react:masterfrom
keyz:fix-server-prod
Jul 27, 2017
Merged

Fix ReactPartialRenderer in production#10300
gaearon merged 1 commit into
react:masterfrom
keyz:fix-server-prod

Conversation

@keyz

@keyz keyz commented Jul 27, 2017

Copy link
Copy Markdown
Contributor

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.

@keyz keyz requested a review from aickin July 27, 2017 05:08
@keyz keyz requested a review from trueadm July 27, 2017 05:13
@aickin

aickin commented Jul 27, 2017

Copy link
Copy Markdown
Contributor

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

keyz commented Jul 27, 2017

Copy link
Copy Markdown
Contributor Author

@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

gaearon commented Jul 27, 2017

Copy link
Copy Markdown
Collaborator

Ideally, we'd run tests in prod mode

#10273 :-)

@gaearon gaearon merged commit 3abbcc4 into react:master Jul 27, 2017
@gaearon

gaearon commented Jul 27, 2017

Copy link
Copy Markdown
Collaborator

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

@gaearon

gaearon commented Jul 27, 2017

Copy link
Copy Markdown
Collaborator

I added tests in #10308.

@gaearon

gaearon commented Jul 27, 2017

Copy link
Copy Markdown
Collaborator

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