Skip to content

Make warning (e.g., propTypes) behavior configurable #2560

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

Closed
sophiebits opened this issue Nov 19, 2014 · 1 comment
Closed

Make warning (e.g., propTypes) behavior configurable #2560

sophiebits opened this issue Nov 19, 2014 · 1 comment

Comments

@sophiebits
Copy link
Collaborator

The implementation of the warning module in this repo is to do a console.warn. In most cases, you want this to be louder in development so that the warnings (really errors) are impossible to ignore. There should be a way to configure the warnings to produce an alert() or similar.

Relatedly, people should be able to easily set up their unit tests to fail if any propTypes checks fail.

@sophiebits
Copy link
Collaborator Author

This is close enough to #1753 that I'll close this one.

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

No branches or pull requests

1 participant