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 an internal crash when a reducer throws during render of another component #14675

Closed
wants to merge 3 commits into from

Conversation

gaearon
Copy link
Collaborator

@gaearon gaearon commented Jan 23, 2019

Seems like a bug that the original message gets lost.

screen shot 2019-01-23 at 5 09 40 pm

…throws

I introduced this in facebook#14653 (223960e). But I relied on restart to clean it up in case of error, and didn't notice the try/catch. This makes sure the failing case also restores the current variable which renderWitHooks() currently relies on.
@gaearon gaearon changed the title Add failing regression test for #14674 Fix an internal crash when a reducer throws during render of another component Jan 23, 2019
gaearon added a commit to gaearon/react that referenced this pull request Jan 23, 2019
Fix an internal crash when a reducer throws during render of another component
@gaearon gaearon mentioned this pull request Jan 23, 2019
@gaearon gaearon closed this Jan 23, 2019
@gaearon
Copy link
Collaborator Author

gaearon commented Jan 23, 2019

Superseded by #14677

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.

None yet

2 participants