Skip to content

Clearer ssr error message 11902#11966

Merged
gaearon merged 4 commits intofacebook:masterfrom
HeroProtagonist:clearer-ssr-error-message-11902
Feb 5, 2018
Merged

Clearer ssr error message 11902#11966
gaearon merged 4 commits intofacebook:masterfrom
HeroProtagonist:clearer-ssr-error-message-11902

Conversation

@HeroProtagonist
Copy link
Contributor

Resolves #11902

Only in development was a warning being thrown about ReactElements with non string type. Nothing stopped the code from continuing to execute calling the string method on invalid types.

I added a check in ReactPartialRenderer.js that throws an error before toLowerCase is called. Also a simple test of this new behavior.

Loading
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