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

Event API: ensure we pop context for event system fibers #15599

Merged
merged 1 commit into from
May 9, 2019

Conversation

trueadm
Copy link
Contributor

@trueadm trueadm commented May 9, 2019

This PR fixes an issue I stumbled across when running this internally. I'm not sure how to repro this in a test, as I don't know what conditions are needed exactly with the test renderer to invoke the unwindInterruptedWork function. Will follow up with someone to figure one out.

@trueadm
Copy link
Contributor Author

trueadm commented May 9, 2019

I will add some tests in a follow up. Landing to unblock internal issues.

@trueadm trueadm merged commit 3d8b836 into facebook:master May 9, 2019
@trueadm trueadm deleted the unwind-event branch May 9, 2019 16:01
@gaearon
Copy link
Collaborator

gaearon commented May 9, 2019

To find what breaks, you can comment out other lines in this function, see which existing tests break, and write similar tests. Unwinding is used for Suspense and/or error handling afaik.

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