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

Improve error messages for invalid states #7036

Closed
gaearon opened this issue Jun 14, 2016 · 1 comment
Closed

Improve error messages for invalid states #7036

gaearon opened this issue Jun 14, 2016 · 1 comment
Assignees

Comments

@gaearon
Copy link
Collaborator

gaearon commented Jun 14, 2016

I think we should create a test suite that throws errors in different lifecycle methods, and make sure we have relatively sensible invariants as early as possible, preferably with component names.
#6990 is an example of this, but we’ll keep regressing until we actually test for something like this explicitly.

cc @jingc @yungsters @facebook/react-core

@gaearon
Copy link
Collaborator Author

gaearon commented Oct 4, 2017

React 16 handles errors in user code gracefully and doesn’t emit cryptic errors.

@gaearon gaearon closed this as completed Oct 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant