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 the warning condition in ReactDebugTool and ReactDOMDebugTool #6605

Merged
merged 2 commits into from
Apr 25, 2016
Merged

Fix the warning condition in ReactDebugTool and ReactDOMDebugTool #6605

merged 2 commits into from
Apr 25, 2016

Conversation

gaearon
Copy link
Collaborator

@gaearon gaearon commented Apr 24, 2016

The current warning condition caused the first error to be swallowed, and all the next errors to be logged. I believe the intention was the opposite: to log the first error, and to ignore any next errors for the same method. I added some tests to verify the new behavior is correct.

Reviewers: @jimfb

gaearon added 2 commits April 25, 2016 00:41
The current warning condition caused the first error to be swallowed, and all the next errors to be logged. I believe the intention was the opposite: to log the first error, and to ignore any next errors for the same method.
@facebook-github-bot
Copy link

@gaearon updated the pull request.

@jimfb
Copy link
Contributor

jimfb commented Apr 25, 2016

👍

@gaearon gaearon merged commit 7dbc95f into facebook:master Apr 25, 2016
@gaearon gaearon deleted the fix-warning-condition branch April 25, 2016 19:16
@zpao zpao added this to the 15.y.0 milestone May 17, 2016
@zpao zpao modified the milestones: 15.y.0, 15-next Jun 1, 2016
zpao pushed a commit to zpao/react that referenced this pull request Jun 8, 2016
Fix the warning condition in ReactDebugTool and ReactDOMDebugTool
(cherry picked from commit 7dbc95f)
zpao pushed a commit that referenced this pull request Jun 14, 2016
Fix the warning condition in ReactDebugTool and ReactDOMDebugTool
(cherry picked from commit 7dbc95f)
@zpao zpao modified the milestones: 15-next, 15.2.0 Jun 14, 2016
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