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 synchronous thenable rejection #14633

Merged
merged 2 commits into from
Jan 19, 2019
Merged

Conversation

gaearon
Copy link
Collaborator

@gaearon gaearon commented Jan 18, 2019

This reverts #14632 (it has a bug), adds a regression test, and then changes behavior to a preferred one. See individual commits.

Reverts facebook#14632 and adds a regression test.
Fewer footguns and seems like nicer behavior anyway.
Copy link
Collaborator

@acdlite acdlite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense

@gaearon gaearon merged commit 10a7a5b into facebook:master Jan 19, 2019
@gaearon gaearon deleted the fix-sync-reject branch January 19, 2019 00:42
jetoneza pushed a commit to jetoneza/react that referenced this pull request Jan 23, 2019
* Fix handling of sync rejection

Reverts facebook#14632 and adds a regression test.

* Handle rejection synchronously too

Fewer footguns and seems like nicer behavior anyway.
n8schloss pushed a commit to n8schloss/react that referenced this pull request Jan 31, 2019
* Fix handling of sync rejection

Reverts facebook#14632 and adds a regression test.

* Handle rejection synchronously too

Fewer footguns and seems like nicer behavior anyway.
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

3 participants